diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-14 09:35:51 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-04-14 10:22:51 +0200 |
commit | 86a97dbd1836e82fbd9d5b80848604393d7449a2 (patch) | |
tree | 6debe2c2bc210a369e27b65a8b913bebce0bd9ce /docs/layouts | |
parent | 5e2e62d97f8ada79b1531cdae1dd3f7267abe0b0 (diff) |
docs: Add Netlify badge if on Netlify
Diffstat (limited to 'docs/layouts')
-rw-r--r-- | docs/layouts/partials/footer.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html index 99a0eaf59..b422a1ad0 100644 --- a/docs/layouts/partials/footer.html +++ b/docs/layouts/partials/footer.html @@ -3,6 +3,11 @@ <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{{ .Site.Params.release }} documentation</span> </p> + {{ with getenv "REPOSITORY_URL" -}} + <a href="https://www.netlify.com" style="float: right; padding-right: 20px;"> + <img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"/> + </a> + {{- end }} </div> </div> |