invert condional logic on list pages so they do NOT show the date except for the blog list

This commit is contained in:
KemoNine 2023-03-19 09:44:27 -04:00
parent c0b2038a1b
commit 0134242817

View file

@ -11,16 +11,16 @@
{{ $pages := .Pages }}
{{ $paginator := .Paginate (where $pages "Section" "!=" "") }}
{{ if (eq .Type "tips") }}
{{ if (eq .Type "posts") }}
{{ range sort $paginator.Pages ".Title" }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
{{ else }}
{{ range sort $paginator.Pages }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}