diff options
Diffstat (limited to 'themes/hugo-pt2021/layouts')
-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> |