forked from Bunteshaus/bunteshaus.de
second batch of restructure, fix
This commit is contained in:
parent
349664892b
commit
1bc416d9e4
|
@ -3,7 +3,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{ time.Format "Monday, Jan 2, 2006" "2015-01-21" }}
|
|
||||||
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }}
|
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }}
|
||||||
{{ $days := int (mul (mul (int .Site.Params.featured_expire) 7) -1) }}
|
{{ $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) }}
|
{{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 $days) }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user