From 105d2c8c6b531b28c2355af0fe114150226f2fce Mon Sep 17 00:00:00 2001 From: Aiden X Date: Mon, 28 Dec 2020 17:09:34 +0800 Subject: feat(index): range posts by mainSections --- layouts/index.html | 2 +- layouts/partials/footer.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 70a8a61..e113fd9 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }}
- {{ range (.Site.RegularPages.GroupByDate "2006") }} + {{ range (where .Site.RegularPages "Type" "in" .Site.Params.mainSections).GroupByDate "2006" }}
{{ .Key }}
{{ range .Pages }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5f7fe30..505e6e3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,7 +11,6 @@ {{ end }} © {{ $year }} - 粤ICP备120011798号
-- cgit v1.2.3