PHP已经升级到了7.0,想用CI做个简单的东西,由于CI暂不支持7,于是不得不进行降级。
一开始想着卸载7重装5.6,各种不成功。
终极解决办法(亲测可用):让7和5.6共存,使用时用命令进行切换。
好记性不如烂笔头
缺失模块。
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