From a619bb313df26a055753918c4c8488affcbfd593 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 1 Dec 2020 19:07:44 +0530 Subject: [PATCH] papermod: add FAQ for a9ff953 #89 --- content/posts/papermod/papermod-how-to.md | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/content/posts/papermod/papermod-how-to.md b/content/posts/papermod/papermod-how-to.md index c0f659fc..40f91ce8 100644 --- a/content/posts/papermod/papermod-how-to.md +++ b/content/posts/papermod/papermod-how-to.md @@ -52,6 +52,30 @@ or set `HUGO_ENV` as "production" in system env-vars --- +## Failed to find a valid digest in the 'integrity' attribute for resource ... ? + +Read about How Subresource Integrity helps: [Subresource_Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) + +Why was the `asset` not loading ? : [How_browsers_handle_Subresource_Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity#How_browsers_handle_Subresource_Integrity) + +**Solution:** + +Set the following in `config.yml` + +```yml +params: + assets: + disableFingerprinting: true +``` + +Linked Issues: + +- https://stackoverflow.com/questions/65056585/hugo-theme-not-loading +- https://stackoverflow.com/questions/65040931/hugo-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource +- https://blog.gerardbeckerleg.com/posts/hugo-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource/ + +--- + ## Archive Page ```shell