portfoligor/layouts/_default/list.html

21 lines
651 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<main class="container">
<header>
2021-10-29 22:34:24 +02:00
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
{{.Content}}
<section class="grid posts-list">
<!-- Ranges through content/posts/*.md in reverse order, then displays
the post title, the date and categories (list-footer template) -->
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<a href="{{.Permalink}}">{{.Title}}</a>
{{ partial "lists-footer.html" . }}
</article>
{{ end }}
</section>
</main>
{{ end }}