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

github.com/dldx/hpstr-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index f8da399..b7edc5b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -48,6 +48,6 @@
{{ $.Scratch.Set "Params" .Params }}
{{ end }}
{{ with .Params.background }}
-<style type="text/css">body {background-image:url({{ . | absURL }});}</style>
+<style type="text/css">body {background-image:url({{ $.Site.BaseURL }}{{ . }});}</style>
{{ end }}
</head>