Affiner la mise en page du footer global
This commit is contained in:
@@ -1,4 +1,19 @@
|
||||
{{- $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 -}}
|
||||
@@ -10,28 +25,28 @@
|
||||
<span>{{ .Name }}</span>
|
||||
{{- end -}}
|
||||
</h2>
|
||||
{{- if gt (len .Children) 0 -}}
|
||||
<ul>
|
||||
{{- range .Children -}}
|
||||
<li>
|
||||
{{- if .PageRef -}}
|
||||
<a href="{{ .PageRef }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
{{- else -}}
|
||||
<span title="{{ .Title }}">{{ .Name }}</span>
|
||||
{{- end -}}
|
||||
</li>
|
||||
{{- $children := .Children -}}
|
||||
{{- if gt (len $children) 0 -}}
|
||||
<div>
|
||||
{{- range $index, $child := $children -}}
|
||||
{{- if eq (mod $index 5) 0 -}}
|
||||
<ul>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
<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>
|
||||
<p>
|
||||
<span>{{ .Site.Copyright | safeHTML }}</span>
|
||||
<span>
|
||||
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>.
|
||||
</span>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user