mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-15 01:19:44 +00:00
7bb579950a
- Hide date part in posts if no date is given
5 lines
268 B
HTML
5 lines
268 B
HTML
{{ range .Pages.ByPublishDate.Reverse }}
|
|
<li class="post-item">
|
|
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
|
|
</li>
|
|
{{ end }}
|