fi3ework / hexo-theme-archer

🎯 A smart and modern theme for Hexo.
https://fi3ework.github.io/hexo-theme-archer
MIT License
1.52k stars 273 forks source link

文章目录的编号可以自己设置开关吗? #339

Closed TracyWang-0 closed 2 years ago

TracyWang-0 commented 2 years ago

在写博客的时候,自己一般是会为大标题添加序号的 然而在浏览该博客页面的时候,可以看到每个标题左边又自动添加了序号,如下图,这样看起来让我感觉有点别扭

image

但是我没有学过前端,不知道如何修改,希望可以得到帮助! 万分感谢!!

LolipopJ commented 2 years ago

可以手动修改主题的布局文件 layout/layout.ejs 中的配置:

https://github.com/fi3ework/hexo-theme-archer/blob/de5d47345433ae32eacd9ee66042579cf3c0f7e4/layout/layout.ejs#L44

list_number: true 改成 list_number: false 就行了(大概)。

TracyWang-0 commented 2 years ago

非常感谢您的回复!! 刚才通过邮件中提供的方法尝试后,已经修改成功啦~

祝平安喜乐!

王越越

@.*** | 签名由网易邮箱大师定制

在2022年05月11日 @.***> 写道:

可以手动修改主题的布局文件 layout/layout.ejs 中的配置:

https://github.com/fi3ework/hexo-theme-archer/blob/de5d47345433ae32eacd9ee66042579cf3c0f7e4/layout/layout.ejs#L44

将 list_number: true 改成 list_number: false 就行了(大概)。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>