From 32207534a2e86d938187330e1dc5c0b5d4aa271f Mon Sep 17 00:00:00 2001 From: Gus Esquivel Date: Tue, 30 May 2017 08:28:31 -0500 Subject: [PATCH] add fallback styles for tiles just in case users have javascript disabled. --- layouts/partials/tile.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/tile.html b/layouts/partials/tile.html index 4e2fe15..bbf8ecf 100644 --- a/layouts/partials/tile.html +++ b/layouts/partials/tile.html @@ -4,7 +4,8 @@ data-url='{{ .Link.url }}' {{ if .Link.bg_color }}data-bg-color='{{ .Link.bg_color | safeCSS }}'{{ end -}} {{ if .Link.txt_color }}data-txt-color='{{ .Link.txt_color | safeCSS }}'{{ end -}} - {{ if .Link.img }}data-img='{{ .Link.img }}'{{ end -}}> + {{ if .Link.img }}data-img='{{ .Link.img }}'{{ end -}} + {{ if or .Link.bg_color .Link.txt_color }}style='{{ if .Link.bg_color }}background-color:{{ .Link.bg_color | safeCSS }};{{ end }} {{ if .Link.txt_color }}color:{{ .Link.txt_color | safeCSS }}{{end}}'{{ end -}}> {{ if .Link.img }}{{ else }}{{ .Link.name }}{{ end }}
{{ .Link.name }}