代码
没有请创建blog/scripts/random.js
1 | hexo.extend.generator.register('random', function (locals) { |
可选配置
_config.yml
添加以下配置:
1 | random: |
如果不想随机跳转到某篇文章,只需在这篇文章Front-matter
添加random: false
参考
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Ln's Blog!
评论
没有请创建blog/scripts/random.js
1 | hexo.extend.generator.register('random', function (locals) { |
_config.yml
添加以下配置:
1 | random: |
如果不想随机跳转到某篇文章,只需在这篇文章Front-matter
添加random: false