ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 336 forks source link

建议增加文章目录功能 #211

Closed 307590317 closed 6 years ago

307590317 commented 6 years ago

建议在文章中增加文章目录功能

dc1y commented 6 years ago

支持增加文章目录功能,阅读更方便

ppoffice commented 6 years ago

http://blog.zhangruipeng.me/hexo-theme-hueman/2015/03/10/Table-of-Contents-Example/

307590317 commented 6 years ago

没有那种类似fix定位的导航么?这样的话每次就不用返回到顶部去找了

307590317 commented 6 years ago

或者你可以考虑把它移动到 image链接的上面

dc1y commented 6 years ago

文章目录最好固定在侧边栏……感谢作者,期待中。

dc1y commented 6 years ago

https://github.com/nestattacked/hexo-theme-hueman-nestattacked-version 应该是Fork本项目的,其Demo中已有侧边栏文章目录

307590317 commented 6 years ago

期待加入…… 这样的话就不需要每一个段落结束都加一个top了

ppoffice commented 6 years ago

现已将目录改为sidebar插件。实现固定定位并不难,难点在于如何权衡它与其它插件的位置。使用固定定位的话,如果用户同时希望使用其它插件,目录必然会对其它插件造成遮盖。对于个人而言,如果确实需要使用固定定位的目录的话,可以自己修改样式表文件并添加JavaScript脚本。

dc1y commented 6 years ago

好快,谢谢! 个人觉得进入文章阅读页面后,侧边栏除文章目录外的部件应该可以精简,这样有助于减少干扰让阅读更专注。 而对于首页来说,由于反映的是整个站点的概览,因此侧边栏可以更丰富些。

再次感谢!

ArturKlauser commented 5 years ago

The documentation for the catalog widget is missing in https://github.com/ppoffice/hexo-theme-hueman/wiki/Widgets