diff options
author | Olivier DOSSMANN <git@dossmann.net> | 2018-09-03 22:39:31 +0300 |
---|---|---|
committer | Olivier DOSSMANN <git@dossmann.net> | 2018-09-03 22:39:31 +0300 |
commit | 43c5a594645958065279ece8d3a05c2ded256bb7 (patch) | |
tree | 60f7d68fcaaf25f76048c8026c4605d99c780784 | |
parent | 3ebe981e35ae43b633f25346dd103424d63c991d (diff) |
Add absURL for CSS to avoid problems with subdirectory domains
-rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8ddbd0f..7057959 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,4 +3,4 @@ {{ .Hugo.Generator }} <title>{{ .Title }} · {{ .Site.Title }}</title> {{ $styles := resources.Get "css/main.css" | resources.ExecuteAsTemplate "main.css" . | minify | fingerprint }} - <link rel="stylesheet" type="text/css" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen" title="default"> + <link rel="stylesheet" type="text/css" href="{{ $styles.Permalink |absURL }}" integrity="{{ $styles.Data.Integrity }}" media="screen" title="default"> |