forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
081e49dfe1
commit
755361c405
|
@ -1,7 +1,11 @@
|
|||
{{ define "content" }}
|
||||
{{- $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) }}
|
||||
|
||||
{{ $featured = where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections }}
|
||||
|
||||
{{ $featured = $all | intersect $featured }}
|
||||
{{ $posts := $all | complement $featured }}
|
||||
{{ if ne .Content "" }}
|
||||
|
|
Loading…
Reference in New Issue