Hexo
安装hexo
1 | npm i -g hexo-cli |
创建并初始化hexo
1 | npm init <folder> |
创建新的blog
1 | hexo new "BlogName" |
本地预览blog
1 | hexo server |
发布最新的blog
1 | hexo clean |
使用hexo-theme-yilia主题
1 | npm i hexo-generator-json-content --save |
在_config.yml配置文件里添加1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18jsonContent:
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