vanilla-hugo/layouts/favorites/single.html

11 lines
291 B
HTML
Raw Permalink Normal View History

{{ 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 }}