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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-06-12 14:42:35 +0300
committerGitHub <noreply@github.com>2022-06-12 14:42:35 +0300
commite5f3cb11d59773e45aec0c57fb914e73dae211e0 (patch)
tree84c9f701aff509ec0e69ffd812f7180b47371bde /layouts/index.html
parent6e5956b9056e246661782f316726d42f3e1c7356 (diff)
refactor: drop support for `hidden` field in front matter
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 0cd0b88..5c1eaa5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,9 +1,6 @@
{{ define "main" }}
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
- {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
- {{ $filtered := ($pages | intersect $notHidden) }}
- {{ $pag := .Paginate ($filtered) }}
-
+ {{ $pag := .Paginate ($pages) }}
<section class="article-list">
{{ range $index, $element := $pag.Pages }}
{{ partial "article-list/default" . }}