Browse Source

Don't link CSS using a canonical URL, as CSP will hate it

master
Chris Smith 4 years ago
parent
commit
8a01ebc1fb
Signed by: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      site/layouts/partials/head.html

+ 1
- 1
site/layouts/partials/head.html View File

17
     <meta charset="utf-8">
17
     <meta charset="utf-8">
18
     <meta name="viewport" content="width=device-width, initial-scale=1" />
18
     <meta name="viewport" content="width=device-width, initial-scale=1" />
19
     {{ $style := resources.Get "style/style.sass" | toCSS (dict "outputStyle" "compressed") | fingerprint }}
19
     {{ $style := resources.Get "style/style.sass" | toCSS (dict "outputStyle" "compressed") | fingerprint }}
20
-    <link rel="stylesheet" href="{{ $style.Permalink }}">
20
+    <link rel="stylesheet" href="{{ $style.RelPermalink }}">
21
     <link rel="canonical" href="{{ .Permalink }}" />
21
     <link rel="canonical" href="{{ .Permalink }}" />
22
     {{ with .Site.GetPage "home" }}
22
     {{ with .Site.GetPage "home" }}
23
       {{ with .OutputFormats.Get "RSS" }}
23
       {{ with .OutputFormats.Get "RSS" }}

Loading…
Cancel
Save