Add safeCSS for custom home button img

This commit is contained in:
Joe Hutchinson
2018-12-20 09:48:21 -05:00
parent ef61315a07
commit 60adc8b19c

View File

@@ -1,4 +1,4 @@
<a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)" <a ontouchstart="cardPressed.call(this)" ontouchend="cardReleased.call(this)" ontouchmove="cardReleased.call(this)"
href="/" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ .Site.Params.homeimg }} {{ else }} /img/grey-cloud.jpg {{ end }})" rel="bookmark" > href="/" class="card home-card" style="background-image: url({{if isset .Site.Params "homeimg"}} {{ .Site.Params.homeimg | safeCSS }} {{ else }} /img/grey-cloud.jpg {{ end }})" rel="bookmark" >
Home Home
</a> </a>