diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-17 21:45:21 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-17 21:45:21 -0400 |
commit | 94b76900e9c2c381dd418152182f851b1693b295 (patch) | |
tree | cb2c42e47255c44ab733b8f25de441fa06dc65b1 /themes | |
parent | fc815e8d705c2fe7efc9fbd811e173cadffab987 (diff) | |
download | pablotron.org-94b76900e9c2c381dd418152182f851b1693b295.tar.bz2 pablotron.org-94b76900e9c2c381dd418152182f851b1693b295.zip |
add date suffix to articles
Diffstat (limited to 'themes')
-rw-r--r-- | themes/hugo-pt2021/layouts/articles/list.html | 11 |
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> |