mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Docs: add panel showing the last revision of a page
The panel also contains the version of the documentation.
This commit is contained in:
parent
2c66167431
commit
b47652fb29
3 changed files with 28 additions and 2 deletions
|
@ -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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div style="font-size: medium; font-style: italic; text-align: right;">Hugo v{{ .Hugo.Version }} documentation</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
2
docs/static/css/bootstrap-gohugo.css
vendored
2
docs/static/css/bootstrap-gohugo.css
vendored
|
@ -1271,7 +1271,7 @@ label {
|
||||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
.panel-body {
|
.panel-body {
|
||||||
padding: 15px;
|
padding: 15px 15px 0px 15px;
|
||||||
}
|
}
|
||||||
.carousel {
|
.carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
20
docs/static/css/style.css
vendored
20
docs/static/css/style.css
vendored
|
@ -622,3 +622,23 @@ i.freebsd-19px:before {
|
||||||
display: none;
|
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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue