personal-website/layouts/_default/list.html

26 lines
594 B
HTML
Raw Normal View History

2023-08-08 09:03:06 +02:00
{{ define "page" }}
<article class="container">
{{ if ne .Kind "home" }}
<a href="{{ .Site.Home.RelPermalink }}">Home</a>
{{ end }}
<h1>{{ .Title }}</h1>
{{ range .Sections }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<ul>
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ or .Title .RelPermalink }}</a>
</li>
{{ end }}
</ul>
{{ end }}
<h2>Other</h2>
<ul>
{{ range .RegularPages }}
<li>
<a href="{{ .RelPermalink }}">{{ or .Title .RelPermalink }}</a>
</li>
{{ end }}
</ul>
</article>
{{ end }}