hexo-theme-huweihuang
hexo-theme-huweihuang copied to clipboard
推荐使用toc函数锚点 更准确
- 删除package.json内hexo-toc信息
- 在config.yml内如下添加anchors信息启动toc函数
markdown:
render:
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
anchors:
level: 1
permalinkSymbol: ''
可解决用hexo-toc插件中文定位出现undefined问题``
这个可以,但是定位效果好像比较生硬,没有smooth效果
@nqmysb 非常感谢 我用的是toc+smooth函数的结合版 可以实现类似于这种滚动监听的效果嘛https://mensu.github.io/2016/08/11/test-long-catalog-dynamo-amazons-ha-kv-store-ZH.html
@nqmysb 非常感谢 我用的是toc+smooth函数的结合版 可以实现类似于这种滚动监听的效果嘛https://mensu.github.io/2016/08/11/test-long-catalog-dynamo-amazons-ha-kv-store-ZH.html
能够说一下 toc + smooth 的实现吗?
@nqmysb 非常感谢 我用的是toc+smooth函数的结合版 可以实现类似于这种滚动监听的效果嘛https://mensu.github.io/2016/08/11/test-long-catalog-dynamo-amazons-ha-kv-store-ZH.html
贴一下实现吧,感谢🙏