hugo-battheme/layouts/_default/list.html

22 lines
634 B
HTML
Raw Normal View History

2022-04-09 16:00:33 +00:00
{{ define "main" }}
<main>
<article>
2022-04-13 17:04:38 +00:00
<header class="colorswitch">
2022-04-13 12:16:11 +00:00
<h1 id="title">{{.Title}}</h1>
2022-04-09 16:00:33 +00:00
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
2022-04-13 12:16:11 +00:00
<div id="pagelist">
2022-04-09 16:00:33 +00:00
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
2022-04-13 17:04:38 +00:00
<div id="postlist">
<h2 class="colorswitch posttitle">
<a class="colorswitch" href="{{.Permalink}}">{{.Title}}</h2><div class="postdescription">{{.Description}}<br>{{.WordCount}} words</a>
</div>
2022-04-09 16:00:33 +00:00
{{ end }}
2022-04-13 12:16:11 +00:00
</div>
2022-04-13 17:04:38 +00:00
</div>
2022-04-09 16:00:33 +00:00
</main>
{{ end }}