2017-09-07 22:41:16 +03:00
|
|
|
{{ define "main" -}}
|
|
|
|
<ul class="posts">
|
2020-02-10 20:38:11 +02:00
|
|
|
<h1>{{ .Title }}</h1>
|
2020-05-25 22:47:43 +03:00
|
|
|
{{ $regularPages := .Data.Pages -}}
|
|
|
|
{{ $pagesNotHidden := where $regularPages ".Params.hidden" "==" false }}
|
|
|
|
{{ $pagesHiddenUnset := where $regularPages ".Params.hidden" "==" nil }}
|
|
|
|
|
|
|
|
{{ $pages := $pagesNotHidden | union $pagesHiddenUnset }}
|
|
|
|
|
|
|
|
{{ range $pages -}}
|
2017-09-07 22:41:16 +03:00
|
|
|
<li>
|
2020-02-10 20:38:11 +02:00
|
|
|
<span>
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
2020-05-25 22:47:43 +03:00
|
|
|
{{ if eq .Kind "page" }}
|
2020-02-10 20:38:11 +02:00
|
|
|
<time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
2020-05-25 22:47:43 +03:00
|
|
|
{{ end }}
|
2020-02-10 20:38:11 +02:00
|
|
|
</span>
|
2017-09-07 22:41:16 +03:00
|
|
|
</li>
|
2020-02-10 20:38:11 +02:00
|
|
|
{{- end }}
|
2017-09-07 22:41:16 +03:00
|
|
|
</ul>
|
2018-08-29 20:25:01 +03:00
|
|
|
{{- end }}
|