mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-15 04:46:58 +01:00
43 lines
664 B
HTML
43 lines
664 B
HTML
{{ define "main" }}
|
|
|
|
<div id="layout">
|
|
<article>
|
|
|
|
{{ partial "content.header.html" . }}
|
|
|
|
{{ with .Content }}
|
|
<section>
|
|
{{ . }}
|
|
</section>
|
|
{{ end }}
|
|
|
|
<section class="list-page">
|
|
|
|
<!-- preambles -->
|
|
|
|
<ul>
|
|
{{ range .Pages.ByTitle }}
|
|
{{ if .IsPage }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
|
|
<!-- sub categories -->
|
|
|
|
<ul>
|
|
{{ range .Pages.ByTitle }}
|
|
{{ if .IsSection }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
|
|
{{ partial "footer.html" . }}
|
|
{{ partial "nav.html" . }}
|
|
|
|
</article>
|
|
</div>
|
|
|
|
{{ end }}
|