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/dreams.html | 4 ++--
themes/Brine/layouts/_default/languages.html | 2 +-
themes/Brine/layouts/_default/recipes.html | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
(limited to 'themes/Brine/layouts/_default')
diff --git a/themes/Brine/layouts/_default/dreams.html b/themes/Brine/layouts/_default/dreams.html
index 9f55b99..dc60178 100644
--- a/themes/Brine/layouts/_default/dreams.html
+++ b/themes/Brine/layouts/_default/dreams.html
@@ -2,13 +2,13 @@
{{ .Content }}
Dated
- {{ range .Site.Taxonomies.dream.dated}}
+ {{ range sort .Site.Taxonomies.dream.dated ".Page.RelPermalink" "desc" }}
- {{ .Page.Title }}
{{ end }}
Archive
- {{ range .Site.Taxonomies.dream.undated}}
+ {{ range sort .Site.Taxonomies.dream.undated ".Page.RelPermalink" "desc" }}
- {{ .Page.Title }}
{{ end }}
{{ end }}
diff --git a/themes/Brine/layouts/_default/languages.html b/themes/Brine/layouts/_default/languages.html
index 398572c..2bf288b 100644
--- a/themes/Brine/layouts/_default/languages.html
+++ b/themes/Brine/layouts/_default/languages.html
@@ -1,5 +1,5 @@
{{ define "main" }}
{{ .Title }}
{{ .Content }}
- {{ range .Site.Taxonomies.language.dictionary}}
+ {{ range sort .Site.Taxonomies.language.dictionary ".Page.RelPermalink" }}
- {{ .Page.Title }}
{{ end }}
{{ end }}
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