From 0a707292bde7f658868ccc3790fbd1648429de67 Mon Sep 17 00:00:00 2001
From: breadcat
Date: Sun, 28 Jun 2020 12:58:37 +0100
Subject: Sort range pages
---
themes/Brine/layouts/_default/recipes.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'themes/Brine/layouts/_default/recipes.html')
diff --git a/themes/Brine/layouts/_default/recipes.html b/themes/Brine/layouts/_default/recipes.html
index 23ddc43..b39c13f 100644
--- a/themes/Brine/layouts/_default/recipes.html
+++ b/themes/Brine/layouts/_default/recipes.html
@@ -1,18 +1,18 @@
{{ define "main" }}
{{ .Title }}
{{ .Content }}
Meals
- {{ range .Site.Taxonomies.recipe.meal}}
+ {{ range sort .Site.Taxonomies.recipe.meal ".Page.RelPermalink" }}
- {{ .Page.Title }}
{{ end }}
Snacks
- {{ range .Site.Taxonomies.recipe.snack}}
+ {{ range sort .Site.Taxonomies.recipe.snack ".Page.RelPermalink" }}
- {{ .Page.Title }}
{{ end }}
Breads
- {{ range .Site.Taxonomies.recipe.bread}}
+ {{ range sort .Site.Taxonomies.recipe.bread ".Page.RelPermalink" }}
- {{ .Page.Title }}
{{ end }}
Desserts
- {{ range .Site.Taxonomies.recipe.dessert}}
+ {{ range sort .Site.Taxonomies.recipe.dessert ".Page.RelPermalink" }}
- {{ .Page.Title }}
{{ end }}
{{ end }}
--
cgit v1.2.3