mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
docs: Add Netlify badge if on Netlify
This commit is contained in:
1 parent
5e2e62d97f
commit
86a97dbd18
1 file changed
+5
@@ -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 }}
|
<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>
|
<span style="float: right;">Hugo v{{ .Site.Params.release }} documentation</span>
|
||||||
</p>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user