small fixes

This commit is contained in:
teldra 2022-06-07 13:45:44 +02:00
parent 9322ea68b7
commit ebc35f6d7f
1 changed files with 4 additions and 2 deletions

View File

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