janw.name/themes/janw/layouts/_default/list.html

30 lines
779 B
HTML
Raw Normal View History

2022-11-05 19:00:03 +00:00
{{ define "main" }}
<main class="big-container">
<article>
<header>
<h1>{{.Title}}</h1>
</header>
{{.Content}}
</article>
2023-11-05 14:51:37 +00:00
<ul class="toc">
2022-11-05 19:00:03 +00:00
{{ range .Pages }}
<li>
<a class="sub-container" href="{{.Permalink}}">
2023-11-05 14:51:37 +00:00
<div>
<span>{{.Date.Format "02. January 2006"}}</span><br>
<span>{{.Title}}</span>
</div>
{{if .Params.teaser}}
<div class="img-container">
<div class="img-container-child" style="background-image: url({{.Params.teaser}})">
</div>
</div>
{{end}}
2022-11-05 19:00:03 +00:00
</a>
</li>
{{ end }}
</ul>
</main>
2023-11-05 14:51:37 +00:00
{{ end }}