docs: Add Netlify badge if on Netlify - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 86a97dbd1836e82fbd9d5b80848604393d7449a2
DIR parent 5e2e62d97f8ada79b1531cdae1dd3f7267abe0b0
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Fri, 14 Apr 2017 09:35:51 +0200
docs: Add Netlify badge if on Netlify
Diffstat:
M docs/layouts/partials/footer.html | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
DIR diff --git 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>