Website/layouts/shortcodes/projets.html
Martin Gasque 0ba3f3c7c5 Initial commit
Will it deploy one day ?
2024-02-20 08:59:37 +01:00

26 lines
729 B
HTML

<section class="section">
<div class="home-title-dropdown">
<h2 class="home-section-title">
{{- with $.Page.Params.projects_section_heading -}}
{{- . -}}
{{- else -}}
Les projets
{{- end -}}
</h2>
<a class="see-more-projects" href="{{ "projets/" | relURL }}">Tout voir &raquo;</a>
</div>
{{ $num := .Get 0 }}
{{ if not $num }}
{{ $num = 6 }}
{{ end }}
{{ $projects := where site.RegularPages "Section" "projets" | first $num }}
{{ with $projects }}
<div class="project-list">
{{- range . }}
{{ partial "projets/project-entry.html" . }}
{{ end }}
</div>
{{ else }}
{{ partial "general/fallback-text.html" . }}
{{ end }}
</section>