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:
Cameron Moore 2017-01-02 07:08:36 -06:00 committed by digitalcraftsman
parent 5834efd5fd
commit 6a51216c6a
3 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@ enableGitInfo = true
[params] [params]
description = "Documentation of Hugo, a fast and flexible static site generator built with love by spf13, bep and friends in Go" description = "Documentation of Hugo, a fast and flexible static site generator built with love by spf13, bep and friends in Go"
author = "Steve Francia (spf13) and friends" author = "Steve Francia (spf13) and friends"
release = "0.18.1"
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"

View file

@ -1,7 +1,7 @@
<div class="row"> <div class="row">
<div class="footer-panel"> <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 }} <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> </p>
</div> </div>
</div> </div>

View file

@ -35,7 +35,7 @@
</div> </div>
<!--logo start--> <!--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--> <!--logo end-->
<div class="top-nav notification-row"> <div class="top-nav notification-row">
<!-- notification dropdown end--> <!-- notification dropdown end-->