Sections: add homepage_index to control order

This commit is contained in:
Théophile Bastian 2019-05-16 15:49:10 +02:00
parent 67ec85ad8c
commit d0c52db6de
4 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,4 @@
---
title: Fermentations étranges
homepage_index: 50
---

View file

@ -1,3 +1,4 @@
---
title: Pâtisserie
homepage_index: 10
---

View file

@ -1,3 +1,4 @@
---
title: Plats
homepage_index: 5
---

View file

@ -1,5 +1,5 @@
{{ range where .Sections "Type" "==" "recettes" }}
{{ range sort .Sections "Title" }}
{{ range sort .Sections "Params.homepage_index" }}
<h2 class="recipecat">{{ .Title }}</h2>
<ul>