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

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Gebauer <agebauer@hashicorp.com>2020-09-14 18:54:37 +0300
committerAustin Gebauer <agebauer@hashicorp.com>2020-09-14 18:54:37 +0300
commitae5ffa728e257a035ebaf04a964f829f58e2c46f (patch)
tree48215693efee3a1f0aa4c5517aafef5d29e6655b
parent268725dc5c6cbf2a26f083f34ad0291e431c42c5 (diff)
fix issue where not setting config style params causes hugo pipes render to fail
-rw-r--r--assets/sass/override.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/sass/override.scss b/assets/sass/override.scss
index 2cdca82..7dc4d99 100644
--- a/assets/sass/override.scss
+++ b/assets/sass/override.scss
@@ -1,6 +1,6 @@
// === Import Bootstrap and set variable overrides ===
-$body-bg: {{ .Param "style.backgroundColor" }};
-$body-color: {{ .Param "style.fontColor" }};
+$body-bg: {{ if .Param "style.backgroundColor" }}{{ .Param "style.backgroundColor"}}{{ else }}#f8f9fa{{ end }};
+$body-color: {{ if .Param "style.fontColor" }}{{ .Param "style.fontColor"}}{{ else }}#212529{{ end }};
$font-family-base: "Helvetica Neue", Arial, sans-serif;
$font-size-base: 0.95rem;
@import "../../node_modules/bootstrap/scss/bootstrap";