Hexo next 使用utterances评论
之前next里用的是valine评论区,谁知这次怎么弄都配置不上,搜索之下发现新版next已经不支持valine了。好像是因为其安全问题。因此我准备用utterances。
之前next里用的是valine评论区,谁知这次怎么弄都配置不上,搜索之下发现新版next已经不支持valine了。好像是因为其安全问题。因此我准备用utterances。
hexo next主题如何给文章加框?
有些文章写了,但不想要给别人看,那就设一个密码。
运行git push origin master -f 的时候显示这个错误:
1 | fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. |
解决办法是重新关联远程仓库:
1 | git remote add origin git@github.com:junxie01/junxie01.git |
修改根目录下的_config.yml. 找到busuanzi_count:
enable: true
修改themes下的_config.yml. 找到footer:
counter: true
修改themes/next/layout/_partials/footer.njk,添加:
1 | {% if theme.footer.counter %} |
在hexo中插入角注需要安装hexo-reference,命令:
1 | npm install hexo-reference |
语法是:
加入这个:
[^1]
在最后加入这个:
[^1]:https://github.com/kchen0x/hexo-reference
显示出来是:
参见这样加入reference[1]