Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoThemesSite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeborah <starfallprojects@gmail.com>2019-11-22 12:24:27 +0300
committerAlexandros <onedrawingperday@users.noreply.github.com>2019-11-22 12:24:27 +0300
commitb6155358015ef98d2d8805f6fafb1584a82e610c (patch)
treee120563cd61d9faaa75ccd419ab04ed77382c449
parent68355e2c70d7f8140c63ee86a93d6ae65edf7e35 (diff)
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.
-rw-r--r--layouts/taxonomy/tag.html2
1 files changed, 1 insertions, 1 deletions
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 }}