mirror of https://github.com/kc0bfv/ticky_tacky_dark.git

Karl
13.16.2020 64d86f0bb0e826196047ef68603a3bfdeb1a19cc
absURL the things
2 files modified
8 ■■■■ changed files
layouts/partials/foot.html 4 ●●●● patch | view | raw | blame | history
layouts/partials/head.html 4 ●●●● patch | view | raw | blame | history
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;
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 }}