go-sonic / sonic

Sonic is a blogging platform developed by Go. Simple and powerful
MIT License
1.99k stars 255 forks source link

不太懂前端,能否优化默认主题,在文章页面加上目录 #349

Closed muyiacc closed 4 months ago

muyiacc commented 9 months ago

你当前使用的版本

v1.1.1

描述一下此特性

默认主题左右板块分栏,个人介绍页面其实占据大片空白,能否在此基础上加上markdown的目录,感谢

附加信息

No response

TreeWu commented 8 months ago

https://blog.wushr.cn/archives/go-sonic-three 可以看看我这个效果,自己改了主题,仓库地址是https://gitee.com/TreeWu/default-theme-anatole

muyiacc commented 8 months ago

我设置后无法加载目录

TreeWu commented 8 months ago

我设置后无法加载目录

你的博客地址是哪个,看看主题设置里面是不是用的我仓库?这个目录其实是用 markdown的 标题 # 1 ,## 2 这种,然后渲染成html时,通过js获取 h1 h2 标签生成的导航,比较简单应该不会有错

muyiacc commented 8 months ago

https://www.seektao.cc

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days