从github使用git clone下载repo时,由于网络问题经常会失败或者速度很慢,而我正巧有科学上网的代理工具,所以配置一下git命令的参数,使得clone走代理即可。
配置参数
[http] 和 [https]
参数位置
- 系统全局参数
~/.gitconfig - 当前项目
.git/config
配置修改
1 | $ git config [--global] http.proxy=socks5://127.0.0.1:1080 |
缺失模块。
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