mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-18 02:07:05 +01:00
Alan Orth
683755f95d
Subresource integrity allows user agents to verify that a fetched resource has been delivered without unexpected manipulation[0]. I put theme assets in a json configuration file and save the hashes to a TOML file that Hugo loads via its theme data mechanism[1]. [0] https://www.w3.org/TR/SRI/ [1] https://gohugo.io/extras/datafiles/
6 lines
151 B
JSON
6 lines
151 B
JSON
{
|
|
"style": "static/css/style.css",
|
|
"cookieconsentcss": "static/css/cookieconsent.min.css",
|
|
"cookieconsentjs": "static/js/cookieconsent.min.js"
|
|
}
|