razonyang / hugo-theme-bootstrap

A fast, responsive, multipurpose and feature-rich Hugo theme.
https://hbs.razonyang.com
MIT License
508 stars 166 forks source link

Failed to find a valid digest in the 'integrity' attribute for resource #209

Closed Taunl closed 3 years ago

Taunl commented 3 years ago

when I open "Diagram Guide" page, it don't work. image but I don't change anything of the theme. it work in local site, don't work in web. image

razonyang commented 3 years ago

I think this may be because of line ending.

Please execute the following commands and then republish your site.

$ git config --global core.autocrlf true
$ git add --renormalize .
$ git commit -m "Normalize all the line endings"
Taunl commented 3 years ago

I tried it but it didn't work then I tried follows :

$ git config --global core.autocrlf false
$ git add --renormalize .
$ git commit -m "Don't normalize all the line endings"

It works. NICE !!! Thank you very much!

The themes is really beautify, I absolutely like it. Because I don't need diagram function, it doesn’t affect my use. I strongly recommend adding a black theme in light mode. There is one issue about"Latex" of display. The formula is out of bounds when it is too long to display. I made it work by modifying the "custom.css".

.katex-html{
    overflow:auto; /*latex公式超出浮动*/
    --hbs-accent: gray; /*latex滚动条为灰色*/
}

da95108741be0f45199e75317969033 .

razonyang commented 3 years ago

@Taunl thanks for your feedback, could you please provide the formula above, so that I can reproduce the problem in local?

Taunl commented 3 years ago

use follows:

$$
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
$$

you can get image

razonyang commented 3 years ago

This issue has been fixed in the new UI, you might try it.

imattdu commented 2 years ago

我认为这可能是因为line ending

请执行以下命令,然后重新发布您的站点。

$ git config --global core.autocrlf true
$ git add --renormalize .
$ git commit -m "Normalize all the line endings"

我试了好像不行

razonyang commented 2 years ago

@imattdu 可以提供详细的环境信息吗?比如操作系统(如Windows,Linux,WSL)及其版本、Hugo 版本等信息,现在缺少足够的信息复现这个问题。

imattdu commented 2 years ago

git config --global core.autocrlf true使用这个就可以解决感谢了

------------------ 原始邮件 ------------------ 发件人: "Razon @.>; 发送时间: 2022年1月20日(星期四) 中午11:02 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [razonyang/hugo-theme-bootstrap] Failed to find a valid digest in the 'integrity' attribute for resource (#209)

@imattdu 可以提供详细的环境信息吗?比如操作系统(如Windows,Linux,WSL)及其版本、Hugo 版本等信息,现在缺少足够的信息复现这个问题。

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>