feat: added git info to the footer for pages other than the index
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-07-24 12:56:29 +02:00
parent e9e287ebec
commit 6640239616
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 5 additions and 4 deletions

@ -1,6 +1,8 @@
baseurl = "/"
baseurl = "https://dotya.ml"
languageCode = "en-us"
defaultContentLanguage = "en"
theme = "hermit"
enableGitInfo = true
license = "WTFPL"
copyright = '<a href="http://www.wtfpl.net/about/" rel="noopener">WTFPL</a>'
@ -16,9 +18,8 @@ enableEmoji = true
dateformShort = "Jan 2"
dateformNum = "2006-02-01"
dateformNumTime = "2006-02-01 15:04 +0000"
# Metadata mostly used in document's head
description = "dotya.ml"
description = "dotya.ml homepage"
keywords = "homepage, development, git, programming"
images = [""]
themeColor = "#282a2b"

@ -1,3 +1,3 @@
<footer id="site-footer" class="section-inner thin animated fadeIn faster">
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }} &#183 <a href="https://git.dotya.ml/dotya.ml/dotya_homepage" title="source code" target="_blank" rel="noopener">source</a></p>
<p>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>{{ .Site.Params.footerCopyright | safeHTML }} &#183 <a href="https://git.dotya.ml/dotya.ml/dotya_homepage" title="source code" target="_blank" rel="noopener">source</a><br/><a href="https://git.dotya.ml/dotya.ml/dotya_homepage/commit/{{ .GitInfo.Hash }}" target="_blank" rel="noopener">commit {{ .GitInfo.AbbreviatedHash }}</a></p>
</footer>