diff options
author | Karl <kc0bfv@gmail.com> | 2020-01-14 01:16:51 +0300 |
---|---|---|
committer | Karl <kc0bfv@gmail.com> | 2020-01-14 01:16:51 +0300 |
commit | 64d86f0bb0e826196047ef68603a3bfdeb1a19cc (patch) | |
tree | a8ad7f6ae205b9546cfa0e6e1757504cedf77360 | |
parent | f3f7dddbc3c39340c05955c79d29d24250fbcdfb (diff) |
absURL the things
-rw-r--r-- | layouts/partials/foot.html | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 |
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 }} |