22 lines
647 B
HTML
22 lines
647 B
HTML
{{ define "main" -}}
|
|
<ul class="posts">
|
|
<h1>{{ .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>
|
|
{{ if eq .Kind "page" }}
|
|
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
|
{{ end }}
|
|
</span>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|