portfoligor/layouts/_default/section.html

28 lines
799 B
HTML
Raw Normal View History

{{ define "main" }}
<header>
2021-10-29 22:34:24 +02:00
<h2>{{.Title}}</h2>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding
_index.md -->
<article>
<header>
{{.Content }}
</header>
<article class="posts-list">
<!--
Ranges pages by the publish date, in reverse order, to display the
post titles of the section from most recent to older. It adds to
the title the date and categories (from lists-footer.html)
-->
{{ range .Pages.ByPublishDate.Reverse }}
<article>
<a href="{{ .Permalink }}">
{{.Title}}
</a>
{{ partial "lists-footer.html" . }}
</article>
{{ end }}
</article>
</article>
{{ end }}