From f0623a7185c3e11084cfefa5702c026ec7add895 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 13 Feb 2022 16:08:23 -0800 Subject: [PATCH] Add legacy microformats1/hNews metadata This is still used by engines, reader mode implementations, etc. --- layouts/posts/single.html | 12 ++++++------ layouts/shortcodes/indieweb-author.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index c26e5bc..553a588 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,17 +1,17 @@ {{ define "main" }} -
-
+
+
-

{{ .Title }}

+

{{ .Title }}

{{ if lt .Date .Lastmod -}} - Posted by {{- partial "indieweb-author.html" -}} on his Website + Posted by {{- partial "indieweb-author.html" -}} on his Website {{ with .OutputFormats.Get "gemtext" -}} and Gemini capsule {{- end -}}
Last updated . Changelog {{ else -}} - Posted by {{- partial "indieweb-author.html" -}} on his Website + Posted by {{- partial "indieweb-author.html" -}} on his Website {{- with .OutputFormats.Get "gemtext" -}} and Gemini capsule {{- end -}} @@ -19,7 +19,7 @@
{{ .WordCount }} words, a {{ .ReadingTime }} minute read
-
+
{{ partial "processed-content" . -}}
diff --git a/layouts/shortcodes/indieweb-author.html b/layouts/shortcodes/indieweb-author.html index d762b5a..e937f46 100644 --- a/layouts/shortcodes/indieweb-author.html +++ b/layouts/shortcodes/indieweb-author.html @@ -1,4 +1,4 @@ {{ $favicon := resources.Get "/favicon.png" -}} {{- $favicon_base64 := $favicon.Content | base64Encode -}} - +