Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-10-16 21:03:04 +0300
committerZachary Betz <zwbetz@gmail.com>2018-10-16 21:03:04 +0300
commita0556fb6df35175ad027ae13469173484f4dc0d4 (patch)
tree46f95a4425f24342fc65de5b213e17d4935fe5f9
parentedf1ffce56d88edb98d3c4af2b9e7e04e83afdd7 (diff)
Pipe config option values to safeCSS
-rw-r--r--layouts/partials/style.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index c1a5d78..5938cc9 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -36,7 +36,7 @@ img {
{{ with .Site.Params.contentBackgroundColor }}
body {
- background-color: {{ . }};
+ background-color: {{ . | safeCSS }};
}
{{ else }}
body {
@@ -46,7 +46,7 @@ body {
{{ with .Site.Params.contentTextColor }}
body {
- color: {{ . }};
+ color: {{ . | safeCSS }};
}
{{ else }}
body {
@@ -56,7 +56,7 @@ body {
{{ with .Site.Params.contentLinkColor }}
a {
- color: {{ . }};
+ color: {{ . | safeCSS }};
}
{{ else }}
a {
@@ -67,7 +67,7 @@ a {
{{ with .Site.Params.contentLinkHoverColor }}
a:hover,
a:focus {
- color: {{ . }};
+ color: {{ . | safeCSS }};
}
{{ else }}
a:hover,
@@ -78,7 +78,7 @@ a:focus {
{{ with .Site.Params.navbarBackgroundColor }}
.custom-navbar {
- background-color: {{ . }};
+ background-color: {{ . | safeCSS }};
}
{{ else }}
.custom-navbar {
@@ -88,7 +88,7 @@ a:focus {
{{ with .Site.Params.navbarLinkColor }}
.custom-navbar a {
- color: {{ . }};
+ color: {{ . | safeCSS }};
}
{{ else }}
.custom-navbar a {
@@ -99,7 +99,7 @@ a:focus {
{{ with .Site.Params.navbarLinkHoverColor }}
.custom-navbar a:hover,
.custom-navbar a:focus {
- color: {{ . }};
+ color: {{ . | safeCSS }};
}
{{ else }}
.custom-navbar a:hover,
@@ -110,7 +110,7 @@ a:focus {
{{ with .Site.Params.wrapperMaxWidth }}
.container {
- max-width: {{ . }};
+ max-width: {{ . | safeCSS }};
}
{{ else }}
.container {