From ec19540d9299cd65b3598bcb0acb69a6545c6e10 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Fri, 21 Oct 2022 21:09:12 +0200 Subject: add simple theme --- themes/PaperMod | 1 - themes/PaperMod/layouts/partials/post_canonical.html | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 160000 themes/PaperMod create mode 100644 themes/PaperMod/layouts/partials/post_canonical.html (limited to 'themes/PaperMod/layouts/partials/post_canonical.html') diff --git a/themes/PaperMod b/themes/PaperMod deleted file mode 160000 index 3a0a481..0000000 --- a/themes/PaperMod +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3a0a4811cbc07c0bea09ef55b3c1bfb39b48cddd diff --git a/themes/PaperMod/layouts/partials/post_canonical.html b/themes/PaperMod/layouts/partials/post_canonical.html new file mode 100644 index 0000000..abfc1e3 --- /dev/null +++ b/themes/PaperMod/layouts/partials/post_canonical.html @@ -0,0 +1,9 @@ +{{ if and (.Params.canonicalURL) (.Params.ShowCanonicalLink ) -}} +{{ $url := urls.Parse .Params.canonicalURL }} + +{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated (or .Params.editPost.URL site.Params.editPost.URL) }} | {{- end -}} + + {{- (site.Params.CanonicalLinkText | default .Params.CanonicalLinkText) | default "Originally published at" -}} +  {{ $url.Host }} + +{{- end }} -- cgit v1.2.3