pidgin/nest

Move build info into a header comment.

2019-08-19, Elliott Sales de Andrade
c3a002e9a2b4
Parents 5fa5baeff3b1
Children 9baf2dd4a33c
Move build info into a header comment.

No user is ever going to read this, and it's doubtful that any developer
will either once we're sure that deployment is working correctly.

Also, dropped the Hugo version from the comment, since that's part of
the tags.
--- a/hugo/layouts/partials/custom-header.html Mon Aug 19 02:46:32 2019 -0400
+++ b/hugo/layouts/partials/custom-header.html Mon Aug 19 17:20:25 2019 -0400
@@ -1,1 +1,10 @@
-<link rel="stylesheet" href="/css/custom.css">
\ No newline at end of file
+<link rel="stylesheet" href="/css/custom.css">
+
+{{ printf "<!--" | safeHTML }}
+ Hugo: {{ now.Format "2006-01-02T15:04:05 -0700" }}
+ - Job:
+ {{ with getenv "BUILD_NAME" }}{{ . | safeHTML }}{{ else }}n/a{{ end }}
+ {{ with getenv "BUILD_DATE" }}{{ . | time.Format "2006-01-02T15:04:05 -0700" }}{{ else }}n/a{{ end }}
+ - Commit: {{ with getenv "COMMIT" }}{{ . | safeHTML }}{{ else }}n/a{{ end }}
+ - {{ hugo.Environment | safeHTML }}
+{{ printf "//-->" | safeHTML }}
\ No newline at end of file
--- a/hugo/layouts/partials/footline.html Mon Aug 19 02:46:32 2019 -0400
+++ b/hugo/layouts/partials/footline.html Mon Aug 19 17:20:25 2019 -0400
@@ -53,13 +53,3 @@
</ul>
</div>
</footer>
-
-<div class="build-info">
- Hugo: {{ now.Format "02 Jan 06 15:04" }}
- - Job:
- {{ with getenv "BUILD_NAME" }}{{ . }}{{ else }}n/a{{ end }}
- {{ with getenv "BUILD_DATE" }}{{ . | time.Format "02 Jan 06 15:04" }}{{ else }}n/a{{ end }}
- - Commit: {{ with getenv "COMMIT" }}{{ . }}{{ else }}n/a{{ end }}
- - Hugo Version: {{ hugo.Version }}
- - {{ hugo.Environment }}
-</div>
--- a/hugo/static/css/custom.css Mon Aug 19 02:46:32 2019 -0400
+++ b/hugo/static/css/custom.css Mon Aug 19 17:20:25 2019 -0400
@@ -82,11 +82,6 @@
list-style-type: none;
padding-right: 1em;
}
-
-.build-info {
- font-size: 8px;
- text-align: center;
-}
.supporters {
padding: 7px;