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

github.com/EmielH/stip-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2019-04-01 21:09:13 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-04-01 21:09:13 +0300
commit9d952732b74be5e62dd466c26084a6ab976c9119 (patch)
tree051dc6ba7a19a73365995e9d1f096486c2c2ba04
parente14b0b29e650e2554464c6e73531d69f7dcb2fb3 (diff)
Use relURL for background image
-rw-r--r--assets/scss/stip.scss4
-rw-r--r--assets/scss/stip/_base.scss1
2 files changed, 4 insertions, 1 deletions
diff --git a/assets/scss/stip.scss b/assets/scss/stip.scss
index bdce358..c557763 100644
--- a/assets/scss/stip.scss
+++ b/assets/scss/stip.scss
@@ -4,6 +4,10 @@ $color-circle: {{ .Site.Params.colors.circle | default "#164972" }};
$color-foreground: {{ .Site.Params.colors.foreground | default "#fff" }};
$color-hover: {{ .Site.Params.colors.hover | default "#88fcf0" }};
+body {
+ background: url('{{ "/images/background.jpg" | relURL }}');
+}
+
@import 'stip/variables';
@import 'stip/base';
@import 'stip/layout';
diff --git a/assets/scss/stip/_base.scss b/assets/scss/stip/_base.scss
index 09ec497..6579164 100644
--- a/assets/scss/stip/_base.scss
+++ b/assets/scss/stip/_base.scss
@@ -13,7 +13,6 @@ html {
body {
background-color: $color-background;
- background: url('/images/background.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
}