{{ .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 sort .Pages "Date" "desc" }} {{ partial "li.html" . }} {{ end }} {{ end }}
{{ $nbPosts := len (where .Data.Pages "Params.best" true) }}
{{ if gt $nbPosts 0 }}
Best posts
-
{{ range sort .Data.Pages "Date" "desc" }}
{{ if eq .Params.best true }}
{{ partial "li.html" . }}
{{ end }}
{{ end }}