Hello. First of all thank you for this beautiful theme.
I have some issues when I try to deploy the theme to github pages. When I deploy I got error message Failed to find a valid digest in the 'integrity' attribute for index.html:1 resource 'https://....' with computed SHA256 integrity '.....'. The resource has been blocked.
Right now I am following this solution https://stackoverflow.com/a/65052963/1351913 and I edited in themes/anatole/partials/head.html and remove integrity in there and it is working fine. But maybe if there is another solution for this?
@albilaga Glad you like the theme. On the site site I can't see an integrity error.
It would be interesting to know, which script caused the error. Do you have a more complete log?
From a security point of view, it's not advisable to remove the integrity check, especially for content hosted on a CDN.
This error reminds me a lot of this issue #64, however, it seemed to be resolved by new. Somehow this issue seems very specific to GitHub Pages, I have never seen it on Netlify or anywhere else.
Yes. I don't have error now because I remove the integrity. This is the part where I remove the integrity
<!-- CSS -->
{{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet"
href="{{ $style.Permalink }}"
integrity="{{ $style.Data.Integrity }}"
crossorigin="anonymous"
type="text/css">
I changed the integrity to integrity="" and it is working now. Not sure how to fix if I enable integrity again. And yes I am using github pages
I have the same issue
You can check it here: https://bogdi.xyz/
BTW: just now I have updated the theme using git submodule update --remote --merge but it doesn't help
This is an issue commonly reported on other themes too. Basically, would you need to ensure the line endings stay the same. Check out this documentation. Could you please give this a try?
Unfortunately, I can not reproduce the problem on my setup.
Hmm, I completely remove theme, executed git config --global core.autocrlf input and added theme once again and it helped as I see.
Thank you!
@lxndrblz yes. Looks like that is the issue. Thank you...