diff --git a/config.toml b/config.toml
index 3a7674c..fa0cebf 100644
--- a/config.toml
+++ b/config.toml
@@ -7,6 +7,7 @@ timeZone = 'UTC'
enableEmoji = true
enableRobotsTXT = true
+enableGitInfo = true
rssLimit = 25
ignoreFiles = [ '.gitignore', '.gitkeep' ]
diff --git a/themes/hugo-xmin/exampleSite/config.toml b/themes/hugo-xmin/exampleSite/config.toml
index a785bab..512da71 100644
--- a/themes/hugo-xmin/exampleSite/config.toml
+++ b/themes/hugo-xmin/exampleSite/config.toml
@@ -7,6 +7,7 @@ timeZone = 'UTC'
enableEmoji = true
enableRobotsTXT = true
+enableGitInfo = true
rssLimit = 25
ignoreFiles = [ '.gitignore', '.gitkeep' ]
diff --git a/themes/hugo-xmin/layouts/_default/single.html b/themes/hugo-xmin/layouts/_default/single.html
index 8139eac..e9944ff 100644
--- a/themes/hugo-xmin/layouts/_default/single.html
+++ b/themes/hugo-xmin/layouts/_default/single.html
@@ -1,7 +1,7 @@
{{ partial "header.html" . }}
{{ .Title | markdownify }}
-{{ with .Params.author }}
{{ . }}
{{ end }}
+{{ with .Params.author }}
By: {{ . }}
{{ end }}
{{ if (gt .Date 0) }}
Published: {{ .Date.Format "2006/01/02" }}
{{ end }}
{{ if (gt .Lastmod 0) }}
Last Modified: {{ .Lastmod.Format "2006/01/02" }}
{{ end }}
diff --git a/themes/hugo-xmin/layouts/partials/footer.html b/themes/hugo-xmin/layouts/partials/footer.html
index 0689dd3..2bf71be 100644
--- a/themes/hugo-xmin/layouts/partials/footer.html
+++ b/themes/hugo-xmin/layouts/partials/footer.html
@@ -2,23 +2,12 @@
{{ partial "foot_custom.html" . }}
{{ with .Site.Params.footer }}
- {{ replace . "{Year}" now.Year | markdownify}}
+
Back to top
+
{{ replace . "{Year}" now.Year | markdownify}}
{{ end }}
- {{ if .File.Path }}
- {{ $.Scratch.Set "FilePath" .File.Path }}
- {{ $RmdFile := (print .File.BaseFileName ".Rmd") }}
- {{ $Files := readDir (print "content/" .File.Dir) }}
- {{ if (where $Files "Name" $RmdFile) }}
- {{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
- {{ else }}
- {{ $RmdFile := (print .File.BaseFileName ".Rmarkdown") }}
- {{ if (where $Files "Name" $RmdFile) }}
- {{ $.Scratch.Set "FilePath" (print .File.Dir $RmdFile) }}
- {{ end }}
- {{ end }}
- {{ with .Site.Params.GithubEdit}}
- |
Edit this page
- {{ end }}
+ {{ if .GitInfo}}
+
+ Revision
{{ .GitInfo.Hash }}
{{ end }}