second batch of restructure, fix

This commit is contained in:
teldra 2022-04-10 02:31:42 +02:00
parent 349664892b
commit 1bc416d9e4
1 changed files with 0 additions and 1 deletions

View File

@ -3,7 +3,6 @@
{{ end }}
{{ define "content" }}
{{ time.Format "Monday, Jan 2, 2006" "2015-01-21" }}
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }}
{{ $days := int (mul (mul (int .Site.Params.featured_expire) 7) -1) }}
{{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 $days) }}