问题
点击所有文章
提示缺失模块
解决办法
- 确保node版本大于6.2
- 在博客根目录(注意不是yilia根目录)执行以下命令:
npm install hexo-generator-json-content --save
- 在hexo的blog根目录
_config.yml
里添加配置(保持格式,不要改动任何空格缩进),关掉hexo s
之后执行hexo g
重新生成:
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