79E / hexo-theme-quiet

🔥A simple, easy to read flat hexo theme. 扁平化简约Hexo主题
MIT License
189 stars 25 forks source link

Code block not displayed correctly #21

Open ahdbk opened 2 years ago

ahdbk commented 2 years ago

Hey all, Love the work you are doing with your theme. I've installed the theme on my blog and I have this problem. The code bloc is not displayed correctly

Any hint or idea how to fix it ?

Thanks image

79W commented 2 years ago

Check whether your configuration file is configured according to the

# 我的配置
highlight:
  enable: false
  line_number: false
  auto_detect: true
  tab_replace: ''
  wrap: true
  hljs: true
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ''
ahdbk commented 2 years ago

Yes I have the same configuration and I installed all the required package for Less compilation :/

79W commented 2 years ago

Yes I have the same configuration and I installed all the required package for Less compilation :/

Can you give me your code warehouse or your MD article file? I'll try to help you solve this problem.

ahdbk commented 2 years ago

Thanks for your help This is the link for my repo https://github.com/ahdbk/ahdbk.github.io and this is an example of an md file https://github.com/ahdbk/ahdbk.github.io/blob/master/source/_posts/tp-dotnet.md

79W commented 2 years ago

I have looked at your code and found that the Quiet theme lacks the necessary javascript files. I have submitted a pr to you or you can clone the theme code again