From d481251d4148a9e90cf71aa1c11a8f8e077336a4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 3 Jul 2024 16:32:51 -0700 Subject: some more cleanup --- layouts/_default/single.html | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a360c93..2919b8f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,30 +1,28 @@ {{ define "main" }}
+

{{ .Title }}

-

{{ .Title }}

+
+ {{- $pub := .Date.Format "Jan 2, 2006" -}} + {{- $mod := "" -}} -
- {{- $pub := .Date.Format "Jan 2, 2006" -}} - {{- $mod := "" -}} - {{- if (not .GitInfo) }} - {{- $mod = .Lastmod.Format "Jan 2, 2006" -}} - {{ else }} - {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}} - {{ end -}} - {{ if eq $pub $mod }} - posted on {{ $pub }} - {{ else }} - posted on {{ $pub }} - last modified {{ $mod }} - {{ end }} -
+ {{- if (not .GitInfo) }} + {{- $mod = .Lastmod.Format "Jan 2, 2006" -}} + {{ else }} + {{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}} + {{ end -}} -
-{{ .Content }} -
+ {{ if eq $pub $mod }} + posted on {{ $pub }} + {{ else }} + posted on {{ $pub }} - last modified {{ $mod }} + {{ end }} +
-↑ back home +
{{ .Content }}
+ ↑ back home
{{ end }} -- cgit v1.2.3