Sort recipes by alphabetical order (homepage)

This commit is contained in:
Théophile Bastian 2019-05-11 23:25:58 +02:00
parent 2a0c32fe8f
commit c694527407

View file

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