网上各种找资料,折腾了好久,终于把自己的个人博客搭建成功。现把自己使用github+hexo搭建的过程再一步步整理出来。我的 hexo 是 3.3.1 版本,hexo 3.0以上版本和3.0以下版本的有些配置不同,在配置过程中自己要注意甄别。我的github博客暂时还处于逐步完善状态,有错误或不到之处欢迎交流指正。
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true