mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-16 21:36:56 +01:00
42 lines
934 B
HTML
42 lines
934 B
HTML
{{ define "main" }}
|
|
<div id="layout">
|
|
<article>
|
|
|
|
{{- 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">
|
|
<!-- preambles -->
|
|
|
|
{{- if .RegularPages -}}
|
|
<ul>
|
|
{{ range .RegularPages.ByTitle -}}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft{{- end -}}</a></li>
|
|
{{ end -}}
|
|
</ul>
|
|
{{- end -}}
|
|
|
|
<!-- sub categories & pages -->
|
|
|
|
{{- range .Sections.ByTitle -}}
|
|
<p><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft{{- end -}}</a></p>
|
|
<ul>
|
|
{{- range .RegularPages.ByTitle -}}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft{{- end -}}</a></li>
|
|
{{- end -}}
|
|
</ul>
|
|
{{- end -}}
|
|
</section>
|
|
|
|
{{ partial "footer.html" . }}
|
|
{{ partial "nav.html" . }}
|
|
|
|
</article>
|
|
</div>
|
|
{{ end }}
|