nomnom/layouts/partials/recipelist.html

11 lines
247 B
HTML

{{ range where .Sections "Type" "==" "recettes" }}
{{ range sort .Sections "Title" }}
<h2 class="recipecat">{{ .Title }}</h2>
<ul>
{{ range sort .Pages "Title" }}
{{ partial "recipe_list_entry.html" . }}
{{ end }}
</ul>
{{ end }}
{{ end }}