Sections: add homepage_index to control order
This commit is contained in:
parent
67ec85ad8c
commit
d0c52db6de
4 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
title: Fermentations étranges
|
title: Fermentations étranges
|
||||||
|
homepage_index: 50
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
title: Pâtisserie
|
title: Pâtisserie
|
||||||
|
homepage_index: 10
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
---
|
---
|
||||||
title: Plats
|
title: Plats
|
||||||
|
homepage_index: 5
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ range where .Sections "Type" "==" "recettes" }}
|
{{ range where .Sections "Type" "==" "recettes" }}
|
||||||
{{ range sort .Sections "Title" }}
|
{{ range sort .Sections "Params.homepage_index" }}
|
||||||
<h2 class="recipecat">{{ .Title }}</h2>
|
<h2 class="recipecat">{{ .Title }}</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in a new issue