vanilla-hugo/layouts/index.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

12 lines
270 B
HTML

{{ define "main" }}
{{ .Content }}
{{ i18n "recentPosts" }}:
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" (dict "page" .) }}
{{ end }}
</ul>
{{ end }}