瀏覽代碼

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

master
Chris Smith 4 年之前
父節點
當前提交
8a01ebc1fb
簽署人: Chris Smith <chris@chameth.com> GPG 金鑰 ID: 3A2D4BBDC4A3C9A9
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      site/layouts/partials/head.html

+ 1
- 1
site/layouts/partials/head.html 查看文件

@@ -17,7 +17,7 @@
17 17
     <meta charset="utf-8">
18 18
     <meta name="viewport" content="width=device-width, initial-scale=1" />
19 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 21
     <link rel="canonical" href="{{ .Permalink }}" />
22 22
     {{ with .Site.GetPage "home" }}
23 23
       {{ with .OutputFormats.Get "RSS" }}

Loading…
取消
儲存