small fixes
This commit is contained in:
parent
f5944d423c
commit
ec971bbab4
|
@ -5,9 +5,8 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $s := .Site.Params }}
|
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" .Site.Params.searchSections }}
|
||||||
{{- $all := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.searchSections }}
|
{{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" .Site.Params.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }}
|
||||||
{{ $featured := where (where (where $all ".Params.featured" "=" true) "Type" "in" $s.searchSections) ".Params.Lastmod" "gt" (now.AddDate 0 0 -14) }}
|
|
||||||
{{ $featured = $all | intersect $featured }}
|
{{ $featured = $all | intersect $featured }}
|
||||||
{{ $posts := $all | complement $featured }}
|
{{ $posts := $all | complement $featured }}
|
||||||
{{- $paginator := .Paginate $posts -}}
|
{{- $paginator := .Paginate $posts -}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user