hugo-battheme/layouts/_default/list.html
2022-04-13 19:04:38 +02:00

21 lines
634 B
HTML

{{ define "main" }}
<main>
<article>
<header class="colorswitch">
<h1 id="title">{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<div id="pagelist">
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<div id="postlist">
<h2 class="colorswitch posttitle">
<a class="colorswitch" href="{{.Permalink}}">{{.Title}}</h2><div class="postdescription">{{.Description}}<br>{{.WordCount}} words</a>
</div>
{{ end }}
</div>
</div>
</main>
{{ end }}