Centos 7 搭建静态博客Hexo记录
1.安装Node.js与Git
1 | 安装Node |
具体安装过程可以参考程序羊大佬的视频
[手把手教你从0开始搭建…] https://www.bilibili.com/video/BV1Yb411a7ty/?spm_id_from=333.788.videocard.0:
2.给hexo换主题(yilia)
1 | 在hexo的themes目录下 |
1 | #安装Node |
具体安装过程可以参考程序羊大佬的视频
[手把手教你从0开始搭建…] https://www.bilibili.com/video/BV1Yb411a7ty/?spm_id_from=333.788.videocard.0:
1 | #在hexo的themes目录下 |
tag:
缺失模块。
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