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