pi-www-theme-soho/layouts/_default/category.html

20 lines
606 B
HTML

{{ define "main" -}}
<ul class="posts">
<h1>Category: {{ .Title }}</h1>
{{ $regularPages := .Data.Pages -}}
{{ $pagesNotHidden := where $regularPages ".Params.hidden" "==" false }}
{{ $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil }}
{{ $pages := $pagesNotHidden | union $pagesHiddenUnset }}
{{ range $pages -}}
<li>
<span>
<a href="{{ .Permalink }}">{{ .Title }}</a>
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</span>
</li>
{{- end }}
</ul>
{{- end }}