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

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bilz <mail@alexbilz.com>2020-05-17 15:02:17 +0300
committerAlexander Bilz <mail@alexbilz.com>2020-05-17 15:02:17 +0300
commit8ecb2e1c1dbfa5b4619267333b7a26af776c7cbb (patch)
tree8bd7ed215134685ec0402b810f3c6985f9a57725 /layouts/partials/head.html
parent0324f619a45a42d9505dd66435cbfec2d8ba2e1c (diff)
Initial changes for making theme compliant to strict CSP
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 179c5e9..81ad358 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,7 +4,8 @@
{{- hugo.Generator -}}
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<meta name="description" content="{{ .Site.Params.description }}">
- <link rel="stylesheet" href="{{ `css/style.css` | absURL }}" type="text/css">
+ {{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" type="text/css">
{{ range .Site.Params.customCss -}}
<link rel="stylesheet" href="{{ . | absURL }}" type="text/css">
{{- end }}