2023-03-18 16:15:46 +00:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
|
|
|
{{if not .IsHome }}
|
|
|
|
<h1>{{ .Title | markdownify }}</h1>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ .Content }}
|
|
|
|
|
2023-03-18 20:31:10 +00:00
|
|
|
{{ if not .IsHome }}
|
2023-03-18 16:15:46 +00:00
|
|
|
<ul>
|
2023-03-18 20:31:10 +00:00
|
|
|
|
2023-03-18 16:15:46 +00:00
|
|
|
{{ $pages := .Pages }}
|
|
|
|
{{ $paginator := .Paginate (where $pages "Section" "!=" "") }}
|
2023-03-19 13:44:27 +00:00
|
|
|
{{ if (eq .Type "posts") }}
|
2023-03-19 13:48:44 +00:00
|
|
|
{{ range sort $paginator.Pages ".Date" "desc"}}
|
2023-03-18 20:31:10 +00:00
|
|
|
<li>
|
2023-03-19 13:44:27 +00:00
|
|
|
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
2023-03-18 20:31:10 +00:00
|
|
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2023-03-19 13:48:44 +00:00
|
|
|
{{ range sort $paginator.Pages ".Title" }}
|
2023-03-18 20:31:10 +00:00
|
|
|
<li>
|
|
|
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2023-03-18 16:15:46 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
2023-03-18 20:31:10 +00:00
|
|
|
{{ end }}
|
2023-03-18 16:15:46 +00:00
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|