From d0c52db6dec0330ffdb928b1b06d2b9bdc5f12d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 16 May 2019 15:49:10 +0200 Subject: [PATCH] Sections: add homepage_index to control order --- content/recettes/fermentations/_index.md | 1 + content/recettes/patisserie/_index.md | 1 + content/recettes/plats/_index.md | 1 + layouts/partials/recipelist.html | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/content/recettes/fermentations/_index.md b/content/recettes/fermentations/_index.md index c4e112a..8fac9ed 100644 --- a/content/recettes/fermentations/_index.md +++ b/content/recettes/fermentations/_index.md @@ -1,3 +1,4 @@ --- title: Fermentations étranges +homepage_index: 50 --- diff --git a/content/recettes/patisserie/_index.md b/content/recettes/patisserie/_index.md index 5aa2aeb..404190c 100644 --- a/content/recettes/patisserie/_index.md +++ b/content/recettes/patisserie/_index.md @@ -1,3 +1,4 @@ --- title: Pâtisserie +homepage_index: 10 --- diff --git a/content/recettes/plats/_index.md b/content/recettes/plats/_index.md index f953319..e34a786 100644 --- a/content/recettes/plats/_index.md +++ b/content/recettes/plats/_index.md @@ -1,3 +1,4 @@ --- title: Plats +homepage_index: 5 --- diff --git a/layouts/partials/recipelist.html b/layouts/partials/recipelist.html index a10e0e3..b431514 100644 --- a/layouts/partials/recipelist.html +++ b/layouts/partials/recipelist.html @@ -1,5 +1,5 @@ {{ range where .Sections "Type" "==" "recettes" }} -{{ range sort .Sections "Title" }} +{{ range sort .Sections "Params.homepage_index" }}

{{ .Title }}