portfoligor/layouts/partials/footer.html

32 lines
982 B
HTML
Raw Normal View History

{{ $currentPage := . -}}
{{ $siteSources := .Site.Params.siteSources }}
<footer class="container main-footer no-print">
2021-10-29 22:34:24 +02:00
<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" }}">
2021-10-29 22:34:24 +02:00
{{ $git.AbbreviatedHash }}
</a>
</code>
</li>
{{ end }}
</ul>
</footer>