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:
@ -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 }}
|
||||
|
Reference in New Issue
Block a user