Hugo折腾记

距离上一次写《Hexo折腾记》已经过去很多年了。那时候折腾 Hexo + Next,主要是在装 Node、装插件、改主题配置、解决部署抽风。现在重新整理博客,我换成了 Hugo + PaperMod。 这次不想只停留在“能跑起来”。我的目标是:主题保持可更新,文章按技术、股票、随笔分区管理,首页和导航更像自己的站点,搜索、归档、评论、目录、提示框、代码高亮、备案这些功能都补齐,并且尽量把改动放在 Hugo 推荐的覆盖层里,不直接魔改主题源码。 这篇就记录一下整个折腾过程。 ...

2026年06月07日 · 23 分钟 · 11238 字

Hexo折腾记

Hexo折腾过程 01#安装git 下载地址:https://git-scm.com/downloads 02#安装Node.js 下载地址:https://nodejs.org/en/download/ 03#安装Hexo 进入Git Bash,在某个地方创建一个目录,比如E:/hexo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 cd /e/hexo npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install hexo-cli -g hexo init cnpm install cnpm install hexo-server --save cnpm install hexo-deployer-git --save cnpm install hexo-generator-index --save cnpm install hexo-generator-archive --save cnpm install hexo-generator-tag --save cnpm install hexo-generator-feed --save cnpm install hexo-generator-sitemap --save cnpm install hexo-generator-baidu-sitemap --save cnpm install hexo-related-popular-posts --save #cnpm install hexo-generator-searchdb --save #cnpm install hexo-algolia --save #cnpm install hexo-asset-image --save #cnpm instal hexo-util --save-dev #cnpm install hexo-leancloud-counter-security --save 04#安装Next主题 1 2 git clone https://github.com/theme-next/hexo-theme-next.git themes/next git clone https://github.com/theme-next/theme-next-algolia-instant-search themes/next/source/lib/algolia-instant-search 05#配置Hexo 配置文件:_config.yml 官方文档:https://hexo.io/zh-cn/docs/ 个人喜好配置: ...

2018年04月30日 · 3 分钟 · 1071 字