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

github.com/kc0bfv/ticky_tacky_dark.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl <kc0bfv@gmail.com>2020-01-14 01:16:51 +0300
committerKarl <kc0bfv@gmail.com>2020-01-14 01:16:51 +0300
commit64d86f0bb0e826196047ef68603a3bfdeb1a19cc (patch)
treea8ad7f6ae205b9546cfa0e6e1757504cedf77360
parentf3f7dddbc3c39340c05955c79d29d24250fbcdfb (diff)
absURL the things
-rw-r--r--layouts/partials/foot.html4
-rw-r--r--layouts/partials/head.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
index 286cb6b..8195d41 100644
--- a/layouts/partials/foot.html
+++ b/layouts/partials/foot.html
@@ -12,7 +12,7 @@
images = [
{{- $last_elem := sub (len .) 1 -}}
{{ range $index, $component := . -}}
- {{ . | relURL }}{{ if lt $index $last_elem }},{{ end }}
+ {{ . | absURL }}{{ if lt $index $last_elem }},{{ end }}
{{- end -}}
];
i = Math.ceil(Math.random() * images.length) - 1;
@@ -26,7 +26,7 @@
images = [
{{- $last_elem := sub (len .) 1 -}}
{{ range $index, $component := . -}}
- {{ . | relURL }}{{ if lt $index $last_elem }},{{ end }}
+ {{ . | absURL }}{{ if lt $index $last_elem }},{{ end }}
{{- end -}}
];
i = Math.ceil(Math.random() * images.length) - 1;
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 8951a6e..dd612b3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -42,13 +42,13 @@
<style>
{{ with .Site.Params.headerimages }}
#headerimg {
- background-image: url({{ index . 0 | safeURL | relURL }});
+ background-image: url({{ index . 0 | safeURL | absURL }});
background-size: cover;
}
{{ end }}
{{ with .Params.sideimages }}
#sideimage {
- background-image: url({{ index . 0 | safeURL | relURL }});
+ background-image: url({{ index . 0 | safeURL | absURL }});
background-size: cover;
}
{{ end }}