shithub: hugo

Download patch

ref: b47652fb296b14fa44538380b46e62659ef2e94b
parent: 2c661674317d980fff4f48cb410b929fa18b0bf2
author: digitalcraftsman <[email protected]>
date: Mon Jan 4 13:15:08 EST 2016

Docs: add panel showing the last revision of a page

The panel also contains the version of the
documentation.

--- 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>
 
--- a/docs/static/css/bootstrap-gohugo.css
+++ b/docs/static/css/bootstrap-gohugo.css
@@ -1271,7 +1271,7 @@
           box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
 }
 .panel-body {
-  padding: 15px;
+  padding: 15px 15px 0px 15px;
 }
 .carousel {
   position: relative;
--- a/docs/static/css/style.css
+++ b/docs/static/css/style.css
@@ -622,3 +622,23 @@
         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;
+}