折腾GithubPages-Hexo-NexT

如何创建github pages仓库

https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site

安装hexo并初始化仓库

https://hexo.io/docs/
https://hexo.io/docs/setup

1
2
npm install -g hexo-cli
hexo init <folder> # 注意这个目录不能是非空的

发布hexo到github

https://hexo.io/docs/github-pages

安装配置NexT

https://theme-next.js.org/docs/getting-started/

使用obsidian写博客

  • 隐藏node_modules等文件夹
  • 安装Templater插件

Waline评论系统

Hexo博客进阶:为 Next 主题添加 Waline 评论系统

启用首页摘要

Front-matter中使用excerpt