Skip to content

Commit 1726e90

Browse files
committed
docs: Add Netlify badge if on Netlify
1 parent 9cd6f69 commit 1726e90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎docs/layouts/partials/footer.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<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 }}
44
<span style="float: right;">Hugo v{{ .Site.Params.release }} documentation</span>
55
</p>
6+
{{ with getenv "REPOSITORY_URL" -}}
7+
<a href="https://www.netlify.com" style="float: right; padding-right: 20px;">
8+
<img src="https://www.netlify.com/img/global/badges/netlify-color-bg.svg"/>
9+
</a>
10+
{{- end }}
611
</div>
712
</div>
813

0 commit comments

Comments
 (0)