2023-03-18 16:15:46 +00:00
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
2023-03-20 20:37:04 +00:00
|
|
|
{{ if not .Params.isBranchWithContent }}
|
2023-03-18 16:15:46 +00:00
|
|
|
{{if not .IsHome }}
|
|
|
|
<h1>{{ .Title | markdownify }}</h1>
|
|
|
|
{{ end }}
|
2023-03-20 20:37:04 +00:00
|
|
|
{{ else }}
|
|
|
|
{{ partial "page_meta.html" .}}
|
|
|
|
{{ end }}
|
2023-03-18 16:15:46 +00:00
|
|
|
|
|
|
|
{{ .Content }}
|
|
|
|
|
2023-03-20 20:37:04 +00:00
|
|
|
{{ if not .Params.isBranchWithContent }}
|
2023-03-18 20:31:10 +00:00
|
|
|
{{ if not .IsHome }}
|
2023-03-18 16:15:46 +00:00
|
|
|
<ul>
|
|
|
|
{{ $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-20 20:37:04 +00:00
|
|
|
{{ end }}
|
2023-03-18 16:15:46 +00:00
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|