Adjust post.html to take a dict

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-06-16 19:35:07 -07:00
parent df22cb2b87
commit b1d4dd7a32
7 changed files with 12 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
<ul class="post-list">
{{ range (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ if .Params.favorite }}{{ partial "post.html" . }}{{ end }}
{{ if .Params.favorite }}{{ partial "post.html" (dict "page" .) }}{{ end }}
{{ end }}
</ul>
{{ end }}