From f4096dad80712b3b16f85296a48b65d1cccf5312 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 27 Feb 2018 10:31:25 +0100 Subject: [PATCH] [web] Added Hugo version info to page-info. --- web/layouts/partials/page-info.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/layouts/partials/page-info.html b/web/layouts/partials/page-info.html index 8ed53a9c8e3..d9e3f6f7541 100644 --- a/web/layouts/partials/page-info.html +++ b/web/layouts/partials/page-info.html @@ -1,4 +1,13 @@ <div class="page-info"> - <p>This article was written by {{ .Params.Author }}. If you are missing something or you find an error please <a href="mailto:ogs-devs@googlegroups.com">let us know</a>. <br> - Last revision: {{ .Lastmod.Format "January 2, 2006" }}{{ if .IsPage }}<em>{{ with .GitInfo }}| {{ .Subject }} | <a href="https://github.com/ufz/ogs/commit/{{ .AbbreviatedHash }}">{{ .AbbreviatedHash }}</a>{{ end }}{{if .GitInfo}} | <a href="https://github.com/ufz/ogs/edit/master/web/content/{{ .File.Path }}">Edit this page</a>{{ end }}</em>{{ end }}</p> + <p>This article was written by {{ .Params.Author }}. If you are missing something or you find an error please <a href="mailto:ogs-devs@googlegroups.com">let us know</a>. + <br> Generated with <a href="https://gohugo.com">Hugo</a> {{ .Hugo.Version }}. Last revision: {{ .Lastmod.Format "January 2, 2006" }} {{ if .IsPage }}<em> + {{ with .GitInfo }} + <br> + Commit: {{ .Subject }} <a href="https://github.com/ufz/ogs/commit/{{ .AbbreviatedHash }}">{{ .AbbreviatedHash }}</a> + {{ end }} + {{if .GitInfo}} + | <a href="https://github.com/ufz/ogs/edit/master/web/content/{{ .File.Path }}">Edit this page on <i class="fab fa-github"></i></a> + {{ end }} + </em> {{ end }} + </p> </div> -- GitLab