vanilla-hugo/layouts/favorites/single.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
291 B
HTML

{{ define "main" }}
<h2>{{ .Title }} </h2>
{{ .Content }}
<ul class="post-list">
{{ range (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ if .Params.favorite }}{{ partial "post.html" (dict "page" .) }}{{ end }}
{{ end }}
</ul>
{{ end }}