From ec971bbab4dcfbba7709e94324ed4fa03eac76f2 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 8 Apr 2022 14:44:17 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/themes/buha/layouts/index.html b/themes/buha/layouts/index.html index 13d72cb1..26dc37b4 100644 --- a/themes/buha/layouts/index.html +++ b/themes/buha/layouts/index.html @@ -5,9 +5,8 @@ {{ end }} {{ define "main" }} - {{ $s := .Site.Params }} - {{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }} - {{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" $s.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }} + {{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }} + {{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }} {{ $featured = $all | intersect $featured }} {{ $posts := $all | complement $featured }} {{- $paginator := .Paginate $posts -}}