lestoitsduval/layouts/partials/actualites.html

14 lines
354 B
HTML
Raw Normal View History

2020-03-26 18:48:07 +01:00
<div class="grid actualites -middle">
2022-11-27 00:22:19 +01:00
{{ if .Page.IsHome }}
2020-03-26 18:48:07 +01:00
{{ $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>