vanilla-hugo/layouts/_default/list.html
Danila Fedorin b1d4dd7a32 Adjust post.html to take a dict
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-16 19:35:07 -07:00

11 lines
195 B
HTML

{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
<ul class="post-list">
{{ range .Pages.ByDate.Reverse }}
{{ partial "post.html" (dict "page" .) }}
{{ end }}
</ul>
{{ end }}