diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2024-08-10 21:03:16 -0500 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2024-08-10 21:03:16 -0500 |
commit | f49d28caa3005c608eec9f8f82b1d9625ae37c01 (patch) | |
tree | 3538601cd4ac385e70517f6732290b09c806f936 /layouts/_default/single.html | |
download | hugo-theme-tjkbasic-f49d28caa3005c608eec9f8f82b1d9625ae37c01.tar.xz hugo-theme-tjkbasic-f49d28caa3005c608eec9f8f82b1d9625ae37c01.zip |
initial commit
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..099d3fc --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,20 @@ +{{ define "main" }} + +<div id="publishing"> + <span>{{ .PublishDate | time.Format ":date_long" }}</span> + {{ if and (isset .Params "lastmod") (ne .Lastmod .PublishDate) }} + <br> + <span>Revised: {{ .Lastmod | time.Format ":date_long" }}</span> + {{ end }} + {{ if isset .Params "tags" }} + <br> + <span>Tags:</span> + {{- range sort .Params.tags }} + <a href="/tags/{{ . }}">{{ . | humanize | title }}</a> + {{- end }} + {{ end }} +</div> + +{{ .Content }} + +{{ end }} |