-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next mist v7.0.0的代码块问题 #626
Comments
在Hexo Configuration中设置:
重新执行 |
This comment has been minimized.
This comment has been minimized.
|
@stevenjoezhang 谢谢,好了 |
@stevenjoezhang 另外能解释一下为什么我换了高版本的就需要修改这个吗 |
不客气。代码高亮这一部分的逻辑和以前是一样的,可能是升级的时候把某些设置覆盖掉了? |
@stevenjoezhang 顺便问一下我添加自定义排序为什么不行: 会报错 我在 posts.data = posts.data.sort(function(a, b) {
if(a.top && b.top) {
if(a.top == b.top) return b.date - a.date;
else return b.top - a.top;
}
else if(a.top && !b.top) {
return -1;
}
else if(!a.top && b.top) {
return 1;
}
else return b.date - a.date;
}); |
置顶功能可以用npm装插件实现,不用自己造轮子。见:iissnan/hexo-theme-next#705 |
没看懂? |
orz谢谢 可以了QAQ |
还是之前的报错 |
sidebar:
b2t: true
... |
什么意思啊 |
@yltx https://theme-next.org/docs/theme-settings/#setting-sidebar-5 |
Oh,I know. I think I don't need any help about setting the sidebar,but I still want to thank you. And the below is for @ivan-nginx : I can't use custom sorting right now. Can you help me? My English is not very good, if there are any mistakes, please forgive me. |
I agree and want to create new issue
Expected behavior
我通过设置_config.yml让代码块高亮,显示代码块的复制按钮。
Actual behavior
实际上代码块的高亮出问题了,没有高亮,复制按钮也失败了。
Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
因为不知道你们需要哪些代码,所以我将所有我修改的部分都截图给你们了。如果需要具体的代码,请QQ邮箱联系我:2326439151@qq.com
Other Information
没有了。之前找过一个人帮忙看一下我的blog,他说是代码高亮出了问题引起的,然而我没有找到解决的方法。
The text was updated successfully, but these errors were encountered: