This commit is contained in:
13
layouts/partials/projets.html
Normal file
13
layouts/partials/projets.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="grid actualites -middle">
|
||||
{{ if .Page.IsHome }}
|
||||
{{ $pages := first 4 (where .Site.RegularPages "Type" "projets") }}
|
||||
{{ range $pages }}
|
||||
{{ partial "projet" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $pages := where .Site.RegularPages "Type" "projets" }}
|
||||
{{ range $pages }}
|
||||
{{ partial "projet" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
Reference in New Issue
Block a user