commit b47652fb296b14fa44538380b46e62659ef2e94b
parent 2c661674317d980fff4f48cb410b929fa18b0bf2
Author: digitalcraftsman <digitalcraftsman@users.noreply.github.com>
Date: Mon, 4 Jan 2016 18:15:08 +0100
Docs: add panel showing the last revision of a page
The panel also contains the version of the
documentation.
Diffstat:
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html
@@ -1,7 +1,13 @@
+ <div class="row">
+ <div class="footer-panel">
+ <p>Last revision: {{ .Lastmod.Format "January 2, 2006" }}
+ <span style="float: right;">Hugo v{{ .Hugo.Version }} documentation</span>
+ </p>
+ </div>
+ </div>
</div>
</section>
- <div style="font-size: medium; font-style: italic; text-align: right;">Hugo v{{ .Hugo.Version }} documentation</div>
</div>
diff --git a/docs/static/css/bootstrap-gohugo.css b/docs/static/css/bootstrap-gohugo.css
@@ -1271,7 +1271,7 @@ label {
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.panel-body {
- padding: 15px;
+ padding: 15px 15px 0px 15px;
}
.carousel {
position: relative;
diff --git a/docs/static/css/style.css b/docs/static/css/style.css
@@ -622,3 +622,23 @@ i.freebsd-19px:before {
display: none;
}
}
+
+
+/* Footer panel */
+.footer-panel {
+ width: 100%;
+ border-top:1px #efefef solid;
+ line-height: 30px;
+ padding: 25px 0px 15px;
+ margin-top: 15px;
+ background: #f9f9f9;
+ display: inline-block;
+ float: left;
+}
+
+.footer-panel p {
+ padding-left: 20px;
+ padding-right: 20px;
+ font-size: medium;
+ font-style: italic;
+}