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:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-05-19 19:28:28 +0300
committerGitHub <noreply@github.com>2021-05-19 19:28:28 +0300
commit756792be83fa66e6d112097461d4c29571933398 (patch)
tree761f8febafcfada653f39d340b45ffffbf05513e
parentb540c8b43cf11c5d254551be375c0ef344e3e474 (diff)
Use default sort for the home page theme list
I've noticed themes (or I have seen 1 theme) setting up GitHub Action script to update the theme's readme, effectively pushing it to the top. We need to somehow improve this and set `weight` based on some other criteria.
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 9fe7dad..098edf4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,4 +1,4 @@
{{ define "main" }}
- {{ $section_to_display := .Site.RegularPages.ByLastmod.Reverse }}
+ {{ $section_to_display := .Site.RegularPages }}
{{ partial "pagelayout.html" (dict "context" . "section_to_display" $section_to_display) }}
{{ end }}