diff options
author | Cameron Moore <moorereason@gmail.com> | 2017-01-02 07:08:36 -0600 |
---|---|---|
committer | digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2017-01-02 14:08:36 +0100 |
commit | 6a51216c6a34dc5d8ec20ee5589cd4b1c80f85ab (patch) | |
tree | a6f0bb0c2d098f463d73389bf99375b1a67193d2 /docs/layouts | |
parent | 5834efd5fdc8bdd98a33694a1a48c6d2f660161d (diff) |
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
Diffstat (limited to 'docs/layouts')
-rw-r--r-- | docs/layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | docs/layouts/partials/header.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html index 92a7912e7..99a0eaf59 100644 --- a/docs/layouts/partials/footer.html +++ b/docs/layouts/partials/footer.html @@ -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> diff --git a/docs/layouts/partials/header.html b/docs/layouts/partials/header.html index f9b10d843..78e7e3c4c 100644 --- a/docs/layouts/partials/header.html +++ b/docs/layouts/partials/header.html @@ -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--> |