shithub: hugo

Download patch

ref: 86a97dbd1836e82fbd9d5b80848604393d7449a2
parent: 5e2e62d97f8ada79b1531cdae1dd3f7267abe0b0
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Apr 14 05:35:51 EDT 2017

docs: Add Netlify badge if on Netlify

--- 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>