1
Files
2025/themes/2026/layouts/_partials/footer.html

53 lines
1.7 KiB
HTML

{{- $site := .Site -}}
{{- $logoPath := $site.Params.logo | default "logo-large.png" -}}
{{- $logo := resources.GetMatch $logoPath -}}
<footer>
<section aria-label="Informations du site">
{{- with $logo -}}
<img src="{{ .RelPermalink }}" alt="" width="{{ .Width }}" height="{{ .Height }}">
{{- else -}}
<strong>{{ $site.Title }}</strong>
{{- end -}}
<p>{{ $site.Copyright | safeHTML }}</p>
<p>
Sauf mention contraire, l'intégralité du contenu de ce site est disponible sous licence
<a href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.fr" title="Consulter la licence Creative Commons CC BY-NC-ND 4.0">CC BY-NC-ND</a>.
</p>
</section>
<nav aria-label="Navigation principale">
<ul>
{{- range site.Menus.main -}}
<li>
<h2>
{{- if .PageRef -}}
<a href="{{ .PageRef }}" title="{{ .Title }}">{{ .Name }}</a>
{{- else -}}
<span>{{ .Name }}</span>
{{- end -}}
</h2>
{{- $children := .Children -}}
{{- if gt (len $children) 0 -}}
<div>
{{- range $index, $child := $children -}}
{{- if eq (mod $index 5) 0 -}}
<ul>
{{- end -}}
<li>
{{- if $child.PageRef -}}
<a href="{{ $child.PageRef }}" title="{{ $child.Title }}">{{ $child.Name }}</a>
{{- else -}}
<span title="{{ $child.Title }}">{{ $child.Name }}</span>
{{- end -}}
</li>
{{- if or (eq (mod (add $index 1) 5) 0) (eq (add $index 1) (len $children)) -}}
</ul>
{{- end -}}
{{- end -}}
</div>
{{- end -}}
</li>
{{- end -}}
</ul>
</nav>
</footer>