1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-26 02:22:09 +00:00
seirdy.one/themes/etch-custom/layouts
rohan kumar 74e939f40b
Implement cache-busting and SRI for CSS
Use Hugo's fingerprinting pipes [0] to give external stylesheets an
identifier to enable cache-busting [1].
Since Hugo's fingerprinting automatically generates the information
needed for SRI [2], include an integrity attribute too.

I discovered this feature through webhint [3], and added the .hintrc
file I used to the repo root.

[0]: https://gohugo.io/hugo-pipes/fingerprint/
[1]: https://css-tricks.com/strategies-for-cache-busting-css/
[2]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
[3]: https://webhint.io/
2020-12-11 17:33:38 -08:00
..
_default Switch from <section> to <footer> 2020-12-11 12:02:33 -08:00
partials Implement cache-busting and SRI for CSS 2020-12-11 17:33:38 -08:00
shortcodes Formatting 2020-11-25 00:43:39 -08:00
404.html Batman!! (this commit has no parents) 2020-11-03 15:52:34 -08:00
index.html Batman!! (this commit has no parents) 2020-11-03 15:52:34 -08:00