Refonte complète (simplification) du site

This commit is contained in:
2024-02-29 22:10:34 +01:00
parent a6eb9abd43
commit 8a56206e65
20 changed files with 121 additions and 326 deletions

View File

@@ -0,0 +1,24 @@
<footer class="common-footer">
{{ $languagesCount := $.Site.Home.AllTranslations }}
{{ if gt $languagesCount 1 }}
{{ partial "language-switcher.html" . }}
{{ end }}
<div class="common-footer-bottom">
{{ if .Site.Menus.footer }}
{{ $currentPage := . }}
<ul class="footer-menu">
{{ range .Site.Menus.footer }}
<li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ end }}
<div class="copyright">
<p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
{{ partial "footer-extra.html" . }}
</p>
</div>
</div>
{{ partial "h-card.html" . }}
</footer>