alex.racine/themes/portfoliGor/layouts/partials/footer.html

37 lines
1.0 KiB
HTML

{{ $currentPage := . -}}
{{ $siteSources := .Site.Params.siteSources }}
{{ if .IsHome }}
<footer class="home-footer no-print">
{{ else }}
<footer class="main-footer no-print">
{{ end }}
<nav role="navigation" aria-label="Secondary">
<ul>
{{ range sort .Site.Menus.footer -}}
<li class="nav-item">
<a class="nav-item-link{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}"
id="{{ .Identifier }}"
href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
</li>
{{ end -}}
{{ with .GitInfo }}
{{ $git := . }}
<li>
<code>
<a href="
{{- if eq $siteSources.type "gitlab" -}}
{{ $siteSources.url }}/-/
{{- else -}}
{{ $siteSources.url }}/
{{- end -}}
commit/{{- $git.Hash -}}"
title="{{ i18n "lastCommit" }}">
{{ $git.AbbreviatedHash }}
</a>
</code>
</li>
{{ end }}
</ul>
</nav>
</footer>