small fixes

This commit is contained in:
teldra 2022-06-07 13:45:44 +02:00
parent 9322ea68b7
commit ebc35f6d7f

View File

@ -4,6 +4,9 @@
{{ $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) }}
{{ if eq hugo.Environment "development" }}
devel
{{ end }}
{{ $featured = $all | intersect $featured }} {{ $featured = $all | intersect $featured }}
{{ $posts := $all | complement $featured }} {{ $posts := $all | complement $featured }}
@ -15,7 +18,6 @@
{{ if i18n $feat }} {{ if i18n $feat }}
{{ $feat = i18n $feat }} {{ $feat = i18n $feat }}
{{ end }} {{ end }}
{{ if ne .Content "" }} {{ if ne .Content "" }}
{{ partial "snippets/content" (dict "content" .Content) }} {{ partial "snippets/content" (dict "content" .Content) }}
{{ end }} {{ end }}