1.node.js版本必须6.2以上
2.在hexo根目录下执行命令:
npm i hexo-generator-json-content --save
3.在hexo的配置文件_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
注:1、不能调整其余信息的空格位置
2、第一行jsonContent:前没有空格 ,后三行行前有一个空格 ,剩下的有两个空格
修改后: