HR's Blog

Swimming 🏊 in the sea🌊of code!

0%

Hexo入门

.

安装

1
2
3
4
5
6
7
8
9
10
11
12
13
//通过`npm`安装`Hexo`
npm install hexo-cli -g

//初始化blog
hexo init blog
cd blog
npm install
hexo server

//新建tag页面
hexo new page tags
//新建categories页面
hexo new page categories
1
2
hexo generate
hexo server

主题

hexo-theme-next

1
2
$ cd hexo
$ git clone https://github.com/theme-next/hexo-theme-next themes/next

附加功能

加载相册

脚本

Google AdSense

在Hexo里面加入Google1
在Hexo里面加入Google2

添加阅读量

添加阅读量统计

RSS

Hexo默认生成的RSS地址是:域名/atom.xml
atom.xml

为博客添加一直猫

为博客添加一只猫

数学公式支持

http://stevenshi.me/2017/06/26/hexo-insert-formula/

Reference