adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
9.72k stars 2.62k forks source link

[BUG]run well in local,but fault when publish in github. #1520

Closed baiwan-chenhao closed 4 months ago

baiwan-chenhao commented 4 months ago

in the terminal:

blog/:14 Failed to find a valid digest in the 'integrity' attribute for resource 'https://baiwan-chenhao.github.io/blog/assets/css/stylesheet.4599eadb9eb2ad3d0a8d6827b41a8fda8f2f4af226b63466c09c5fddbc8706b7.css' with computed SHA-256 integrity 'tgnFjVwRu5CxpU4EAF10rR3fIhZet59VM5Z+V9+cO1A='. The resource has been blocked.

baiwan-chenhao commented 4 months ago

publish well when using other theme.

heyzqq commented 2 months ago

Has this problem been solved? @baiwan-chenhao

weeix commented 2 months ago

From https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#failed-to-find-a-valid-digest-in-the-integrity-attribute-for-resource--

Solution:

Set the following in config.yml

params:
  assets:
    disableFingerprinting: true