lestoitsduval/layouts/partials/actualites.html

14 lines
354 B
HTML

<div class="grid actualites -middle">
{{ if .Page.IsHome }}
{{ $pages := first 4 (where .Site.RegularPages "Type" "actualites") }}
{{ range $pages }}
{{ partial "actualite" . }}
{{ end }}
{{ else }}
{{ $pages := where .Site.RegularPages "Type" "actualites" }}
{{ range $pages }}
{{ partial "actualite" . }}
{{ end }}
{{ end }}
</div>