miiiku / hexo-theme-flexblock

一个卡片类拟态风格的Hexo主题
https://kyori.xyz
MIT License
557 stars 80 forks source link

大佬请问我使用flexblock主题,渲染出来的代码有高亮功能,但是没颜色怎么破 #84

Closed cardchoosen closed 3 months ago

cardchoosen commented 3 months ago

_config.yml里面我配置了

syntax_highlighter: highlight.js
highlight:
  enable: true
  auto_detect: false
  line_number: true
  line_threshold: 0
  tab_replace: ''
  exclude_languages:
    - example
  wrap: true
  hljs: false
prismjs:
  enable: true
  preprocess: true
  line_number: true
  line_threshold: 0
  tab_replace: ''

markdown文章在vscode里预览,java、c的代码块是有颜色的,但是部署在网页里就全灰的了。

vscode预览

网页浏览,有行号和复制按钮,有高亮但是没颜色qaq

L33Z22L11 commented 3 months ago

_config.yml

highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ""
  wrap: true
  hljs: true
  theme: atom-one-dark # 主题列表: https://highlightjs.org/demo
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ""
cardchoosen commented 3 months ago

_config.yml

highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ""
  wrap: true
  hljs: true
  theme: atom-one-dark # 主题列表: https://highlightjs.org/demo
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ""

谢谢!代码风格渲染了