1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2025-05-08 13:36:01 +02:00

Start using SRI hashes for CSS/JS assets

Uses Hugo's site data mechanism to load pre-generated asset hashes.
This commit is contained in:
2017-01-11 10:42:49 +02:00
parent 683755f95d
commit 0e381ab120
3 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{ "<!-- combined, minified CSS -->" | safeHTML }}
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet">
<link href="{{ .Site.BaseURL }}css/style.css" rel="stylesheet" integrity="{{ .Site.Data.sri.style}}" crossorigin="anonymous">
{{ if .RSSLink }}
{{ "<!-- RSS 2.0 feed -->" | safeHTML }}