aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-17 21:45:21 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-17 21:45:21 -0400
commit94b76900e9c2c381dd418152182f851b1693b295 (patch)
treecb2c42e47255c44ab733b8f25de441fa06dc65b1 /themes/hugo-pt2021
parentfc815e8d705c2fe7efc9fbd811e173cadffab987 (diff)
downloadpablotron.org-94b76900e9c2c381dd418152182f851b1693b295.tar.bz2
pablotron.org-94b76900e9c2c381dd418152182f851b1693b295.zip
add date suffix to articles
Diffstat (limited to 'themes/hugo-pt2021')
-rw-r--r--themes/hugo-pt2021/layouts/articles/list.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/hugo-pt2021/layouts/articles/list.html b/themes/hugo-pt2021/layouts/articles/list.html
index f9c747b..9fa82df 100644
--- a/themes/hugo-pt2021/layouts/articles/list.html
+++ b/themes/hugo-pt2021/layouts/articles/list.html
@@ -23,6 +23,17 @@
>
{{- .Title -}}
</a>
+
+ {{- if .Date -}}
+ -
+ <span
+ class='date'
+ title='Date for "{{.Title}}".'
+ aria-label='Date for "{{.Title}}".'
+ >
+ {{- .Date.Format "January 2, 2006" -}}
+ </span><!-- date -->
+ {{- end -}}
</li>
{{- else -}}
<li>No articles.</li>