invert condional logic on list pages so they do NOT show the date except for the blog list
This commit is contained in:
parent
c0b2038a1b
commit
0134242817
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue