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

github.com/escalate/hugo-split-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Muguet <hi@tmuguet.me>2018-02-18 22:16:54 +0300
committerThomas Muguet <t.muguet@thomasmuguet.info>2018-04-17 00:36:26 +0300
commit95bf78f96bc73323b46c8ff9c38d9be29515b125 (patch)
tree5dda7bdbe866cf2cfd9c02117614898a779b154c
parent0b43e5ef78ef17a9d68389c26b83e0533142b0e1 (diff)
Fixing URLs to CSS, images and favicon for localized languages
-rw-r--r--layouts/partials/head.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index a1bf8b3..578f18a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -19,17 +19,17 @@
{{ with .Site.Params.twitterHandle }}<meta name="twitter:site" content="@{{ . }}" />{{ end }}
<!-- Favicon -->
-{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . }}" />{{ end }}
+{{ with .Site.Params.favicon }}<link rel="icon" href="{{ . | absURL }}" />{{ end }}
<!-- Styles -->
-<link rel="stylesheet" href="assets/css/split.css" type="text/css" media="screen" />
+<link rel="stylesheet" href="{{ "assets/css/split.css" | absURL }}" type="text/css" media="screen" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<!-- Image Styles -->
{{ if .Site.Params.visual.image.enable }}
<style type="text/css">
{{ if .Site.Params.visual.image.file }}
- .fs-split .split-image { background-image: url("{{ .Site.Params.visual.image.file }}"); background-position: {{ if .Site.Params.visual.image.position }}{{ .Site.Params.visual.image.position }}{{ else }}center center{{ end }}; }
+ .fs-split .split-image { background-image: url("{{ .Site.Params.visual.image.file | absURL }}"); background-position: {{ if .Site.Params.visual.image.position }}{{ .Site.Params.visual.image.position }}{{ else }}center center{{ end }}; }
{{ end }}
</style>
{{ end }}