Add Netlify status badge to footer

This commit is contained in:
Jez Cope 2021-04-07 16:25:27 +01:00
parent c0661f37e9
commit 4e21f00999
1 changed files with 9 additions and 2 deletions

View File

@ -9,9 +9,16 @@
| Built by: <a href="https://gohugo.com/">Hugo</a>
| Theme: <a href="https://tildegit.org/petrichor/theme-mnemosyne-hugo">Mnemosyne</a>
</p>
{{ with .Site.Params.netlify }}
<p class="mt-4">
<a href="https://app.netlify.com/sites/{{.name}}/deploys">
Build status: <img src="https://api.netlify.com/api/v1/badges/{{.id}}/deploy-status">
</a>
</p>
{{ end }}
{{ with .Site.Copyright | safeHTML }}
<hr />
<p>{{.}}</p>
<hr />
<p>{{.}}</p>
{{ end }}
</footer>
</div>