{{ .Content }}
{{ end }}
{{ if isset .Site.Params "latestpostcount" }}
{{ $nbPosts := len (where .Data.Pages "Section" "blog") }}
{{ if gt $nbPosts 0 }}
{{ end }}
Latest posts
-
{{ range (first .Site.Params.latestpostcount (where .Pages "Section" "blog")).GroupByDate "Jan, 2006" "desc" }}
- {{ .Key }} {{ range .Pages.ByPublishDate }} {{ partial "li.html" . }} {{ end }} {{ end }}
{{ $nbPosts := len (where .Data.Pages "Params.best" true) }}
{{ if gt $nbPosts 0 }}
Best posts
-
{{ range .Data.Pages.ByPublishDate }}
{{ if eq .Params.best true }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}