mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
docs: Don't use binary version in docs site
Adds a "release" Site param that will be need to be updated for each release. Fixes #2857
This commit is contained in:
committed by
digitalcraftsman
parent
5834efd5fd
commit
6a51216c6a
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="footer-panel">
|
||||
<p>Last revision: {{ .Lastmod.Format "January 2, 2006" }}{{ if .IsPage }}{{ with .GitInfo }} | <a href="https://github.com/spf13/hugo/commit/{{ .Hash }}">{{ .Subject }} ({{ .AbbreviatedHash }})</a>{{end }}{{ end }}
|
||||
<span style="float: right;">Hugo v{{ .Hugo.Version }} documentation</span>
|
||||
<span style="float: right;">Hugo v{{ .Site.Params.release }} documentation</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
|
||||
<!--logo start-->
|
||||
<a href="/" class="logo"><img src="/img/hugo-logo.png" style="height: 40px; vertical-align: bottom;"> <span style="font-size: small; text-transform: none;">v{{ .Hugo.Version }}</span></a>
|
||||
<a href="/" class="logo"><img src="/img/hugo-logo.png" style="height: 40px; vertical-align: bottom;"> <span style="font-size: small; text-transform: none;">v{{ .Site.Params.release }}</span></a>
|
||||
<!--logo end-->
|
||||
<div class="top-nav notification-row">
|
||||
<!-- notification dropdown end-->
|
||||
|
Reference in New Issue
Block a user