xaoxuu / hexo-theme-stellar

内置文档系统的简约商务风Hexo主题,支持大量的标签组件和动态数据组件。
https://xaoxuu.com/wiki/stellar/
MIT License
1.31k stars 320 forks source link

代码块显示可能有些问题,或者我配置有问题?可以帮忙看看不 #296

Closed xq773939719 closed 8 months ago

xq773939719 commented 1 year ago

_config.yml image

_config.stellar.yml image

写法如下 image

现象 image

没有复制按钮了

如果设置line_number:true,

image

会变成这样子。。。

xaoxuu commented 1 year ago

你试一下我这个配置:

highlight:
  enable: true
  line_number: false
  auto_detect: false
  tab_replace: '    '
  wrap: true
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: '    '
xq773939719 commented 1 year ago

好滴~我试下!

xq773939719 commented 1 year ago

这种组合好像也试过,会这样子。 image

大佬,如果看描述不太好定位,可以百忙之中看下我目前的源码https://github.com/xq773939719/xq773939719.github.io下的source分之,不胜感激!

xaoxuu commented 1 year ago

你直接把那篇文章的源码文件链接发一下

xq773939719 commented 1 year ago

https://github.com/xq773939719/xq773939719.github.io/blob/source/source/_posts/template.md

xaoxuu commented 1 year ago
image

我这边看到是这样的,没有锁进问题,但是有多一层容器,需要把 https://github.com/xq773939719/xq773939719.github.io/blob/f360b7b87a085e6c40837174a2d817096bcd4230/_config.yml#LL59C9-L59C13 这一行设为 false