Giter Site home page Giter Site logo

[BUG] 代码框无法正常渲染,无复制按钮、无折叠按钮 Code box not rendering properly, no copy button, no collapse button about doit HOT 3 CLOSED

IHKYoung avatar IHKYoung commented on June 14, 2024
[BUG] 代码框无法正常渲染,无复制按钮、无折叠按钮 Code box not rendering properly, no copy button, no collapse button

from doit.

Comments (3)

HEIGE-PCloud avatar HEIGE-PCloud commented on June 14, 2024

Can you provide a minimal reproducible example? Are there any errors in the DevTool Console?

from doit.

IHKYoung avatar IHKYoung commented on June 14, 2024

Can you provide a minimal reproducible example? Are there any errors in the DevTool Console?

It can be reproduced using the example in "exampleSite";
At first I thought it was the Hugo version, the latest version is 0.117, I tried to return to 0.100, 0.80, 0.60, all have the same problem, then I wondered if it was a problem with the compilation platform, so I switched from macOS to Linux, and At the same time, I tried both Intel and M1 MacOS, and the same code box could not be rendered;
Use Chrome development mode to view, there is indeed no call to "chroma" in the code box area
💔It is very painful that my front-end knowledge is not deep enough. I can’t solve this bug for the time being.

from doit.

IHKYoung avatar IHKYoung commented on June 14, 2024

I found the reason! 😄
It's that you need to configure it according to the latest hugo, for example using hugo.toml

from doit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.