hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 86a97dbd1836e82fbd9d5b80848604393d7449a2
parent 5e2e62d97f8ada79b1531cdae1dd3f7267abe0b0
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:
Mdocs/layouts/partials/footer.html | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)
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>