hugo-battheme/layouts/_default/list.html

23 lines
693 B
HTML
Raw Normal View History

2022-04-09 16:00:33 +00:00
{{ define "main" }}
<main>
2022-04-16 13:33:59 +00:00
<article class="colorswitch">
<header>
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">
2022-04-15 17:24:57 +00:00
<a class="colorswitch" href="{{.Permalink}}">{{.Title}}</h2><div class="postdescription">{{.Description}}</a><br>
2022-04-15 19:07:54 +00:00
<a class="postinfo colorswitch" href="{{.Permalink}}">read more...</a>
2022-04-13 17:04:38 +00:00
</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 }}