From 9ef139c85bb5cbc6135aedf936803a945324fda6 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sun, 24 Jan 2021 14:43:26 -0800 Subject: [PATCH] Layouts: only show post footer for posts Don't show the posts footer for non-posts, like about.html --- layouts/_default/single.html | 29 +-------------------- layouts/posts/single.html | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 28 deletions(-) create mode 100644 layouts/posts/single.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a927bf8..7777614 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,8 +8,8 @@ Originally 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" -}} @@ -20,31 +20,4 @@ -
- {{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..fa57c92 --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,50 @@ +{{ define "main" }} +
+
+
+

{{ .Title }}

+ {{ $lastmod := .Lastmod -}} + {{ if lt .Date $lastmod -}} + Originally 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" -}} + {{ end }} +
+
+ {{ partial "processed-content" . -}} +
+
+
+
+ +{{ end }}