静态博客
安装node
到Node官网下载相应平台的最新版本安装。
安装git
到git官网下载相应平台的最新版本安装。
创建github账号
建立一个与你用户名对应的仓库,格式:『your_user_name.github.com』
安装hexo
|
|
初始化
|
|
生成静态页面
|
|
本地启动
|
|
发布到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