2023-04-24 03:16:28 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
<div id="layout">
|
|
|
|
<article>
|
|
|
|
|
|
|
|
{{ partial "brand.html" . }}
|
|
|
|
{{ partial "content.header.html" . }}
|
|
|
|
|
|
|
|
<!-- https://discourse.gohugo.io/t/how-to-build-one-collection-for-all-nested-sections/27950/5 -->
|
|
|
|
{{ with .Content }}
|
|
|
|
<section>
|
|
|
|
{{ . }}
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<section class="list-page">
|
2023-04-25 19:14:27 +02:00
|
|
|
<!-- preambles -->
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages.ByTitle }}
|
|
|
|
{{ if .IsPage }}
|
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- sub categories & pages -->
|
|
|
|
|
2023-04-24 03:16:28 +02:00
|
|
|
{{ $indexScratch := .Scratch }}
|
|
|
|
{{ range .Sections }}
|
|
|
|
{{ $indexScratch.Add "sections" (slice . ) }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{- range ($indexScratch.Get "sections").ByTitle -}}
|
2023-04-25 16:19:09 +02:00
|
|
|
<p><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></p>
|
2023-04-24 03:16:28 +02:00
|
|
|
<ul>
|
|
|
|
{{- range .Pages.ByTitle -}}
|
2023-04-25 16:19:09 +02:00
|
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
2023-04-24 03:16:28 +02:00
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
|
|
|
{{- end -}}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ partial "footer.html" . }}
|
|
|
|
|
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|