From 21b8736c80ebb98cf936388f5789f6d9d1590b59 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 2 Dec 2025 20:38:55 -0800 Subject: fix: micro posts imprecise dt-published values --- .../themes/MinIndie/layouts/indie/single.html | 66 ++++++++++++++++++++++ .../themes/MinIndie/layouts/shortcodes/follow.html | 12 ++++ 2 files changed, 78 insertions(+) create mode 100644 indieweb-micro/themes/MinIndie/layouts/indie/single.html create mode 100644 indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html (limited to 'indieweb-micro/themes/MinIndie/layouts') diff --git a/indieweb-micro/themes/MinIndie/layouts/indie/single.html b/indieweb-micro/themes/MinIndie/layouts/indie/single.html new file mode 100644 index 0000000..906b704 --- /dev/null +++ b/indieweb-micro/themes/MinIndie/layouts/indie/single.html @@ -0,0 +1,66 @@ +{{ define "main" }} +{{ $ageDays := div (sub now.Unix .Date.Unix) 86400 }} +
+
+ +

{{ .Title }}

+ + + {{- if or .Params.categories .Params.tags -}} + + {{- end -}} + + {{- with .Site.Params.tagPostOlderThanXDays -}} + {{- if and (gt $ageDays .) (eq $.Type "posts") -}} + {{ partial "article-old-content.html" . }} + {{- end -}} + {{- end -}} + + {{- partial "article-precontent.html" . -}} + + {{- if .Params.toc -}} +
+

Table of Content

+ +
+ {{- end -}} + +
+ {{ .Content }} +
+ + {{ partial "article-extra.html" . }} + + {{ if .Site.Params.enableNextPrevPages }} + {{ partial "article-prevnext.html" . }} + {{ end }} + + {{ if .Site.Params.enableRelatedPages }} + {{ partial "article-related.html" . }} + {{ end }} +
+ +
+{{ end }} diff --git a/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html b/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html new file mode 100644 index 0000000..27a1bdd --- /dev/null +++ b/indieweb-micro/themes/MinIndie/layouts/shortcodes/follow.html @@ -0,0 +1,12 @@ +{{ $url := .Get 0 }} +{{ $date := .Get 1 }} + +
+ + + +
-- cgit v1.2.3