diff options
author | Felix Börner <escalate@users.noreply.github.com> | 2018-04-20 08:12:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 08:12:12 +0300 |
commit | f5739e157f137aeac6a8831a529a81a82f297d2e (patch) | |
tree | 5dda7bdbe866cf2cfd9c02117614898a779b154c | |
parent | 0b43e5ef78ef17a9d68389c26b83e0533142b0e1 (diff) | |
parent | 95bf78f96bc73323b46c8ff9c38d9be29515b125 (diff) |
Merge pull request #1 from tmuguet/fix/i18n
Properly handle resources for localized languages
-rw-r--r-- | layouts/partials/head.html | 6 |
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 }} |