From d4951890a5f2bfdbed168d1ceed8aa7c4ac618a2 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 14 Feb 2022 12:17:43 -0800 Subject: [PATCH] Fix some metadata - Use mainEntity correctly - Support legacy microformats for date updated - Formatting --- layouts/posts/single.html | 23 +++++++++-------- layouts/shortcodes/indieweb-author.html | 34 ++++++++++++++++++++++--- 2 files changed, 43 insertions(+), 14 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 553a588..75def71 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,23 +1,24 @@ {{ define "main" }} -
-
+
+

{{ .Title }}

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