From b6155358015ef98d2d8805f6fafb1584a82e610c Mon Sep 17 00:00:00 2001 From: Deborah Date: Fri, 22 Nov 2019 09:24:27 +0000 Subject: Themes by tag - display by last mod (#61) The main themes page sorts themes by last modified (from most recent to oldest). It would be useful if it did the same when you filter by tags. Note: I couldn't work out how to run the themes site locally (no errors, just showed blank - guessing it needs another repo or sth to pull the themes in), so this change is a bit of a guess. --- layouts/taxonomy/tag.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html index d6ced37..3f94da6 100644 --- a/layouts/taxonomy/tag.html +++ b/layouts/taxonomy/tag.html @@ -1,4 +1,4 @@ {{ define "main" }} - {{ $section_to_display := .Data.Pages }} + {{ $section_to_display := .Data.Pages.ByLastmod.Reverse }} {{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display) }} {{ end }} -- cgit v1.2.3