From 64d86f0bb0e826196047ef68603a3bfdeb1a19cc Mon Sep 17 00:00:00 2001
From: Karl <kc0bfv@gmail.com>
Date: Mon, 13 Jan 2020 22:16:51 +0000
Subject: [PATCH] absURL the things
---
layouts/partials/foot.html | 4 ++--
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 }}
--
Gitblit v1.10.0