blogamore/layouts/partials/footer.html
2022-11-23 00:41:16 +01:00

24 lines
952 B
HTML

<footer class="bg-dark text-bg-dark">
<nav class="nav justify-content-center navbar-expand-md navbar-dark ">
<a class="nav-link" href="#">Impressum & Datenschutz</a>
{{ with .OutputFormats.Get "rss" -}}
<a class="nav-link" href="{{- .Permalink | relURL -}}">RSS-Feed</a>
{{ end }}
</nav>
<p>
{{ if (and (isset .Site.Params "githashfile") (isset .Site.Params "gitrepourl")) }}
{{ if (fileExists .Site.Params.gitHashFile) }}
{{ $commit_id := trim (readFile .Site.Params.gitHashFile) "\n" }}
Git commit:
<a class="border bg-light text-bg-light rounded px-1 me-1"
href="{{- .Site.Params.gitRepoUrl -}}/commit/{{- $commit_id -}}"
target="_blank">{{- substr $commit_id 0 7 -}}</a>
{{ end }}
{{ end }}
<small>Updated on {{ now.Format "January 2, 2006" }}</small>
</p>
<p><a class="nav-link" href="#"><small>&copy; 2009-{{ now.Format "2006"}} MarcoDN</small></a></p>
</footer>