Hexo 配置

通过git+hexo搭建个人博客

More info: Deployment

相关指令

1
2
3
4
5
6
7
8
9
10
11
npm install -g hexo
hexo init
hexo g
hexo s
hexo d
npm install hexo-deployer-git --save
hexo d
npm install hexo --save
hexo new 'kotlin使用笔记'
出现异常:使用下面命令,安装所有插件。
npm ls --depth 0

标签抬头

1
2
3
4
5
6
7
---
title: 标签
date: 2019-07-02 20:25:40
type: tags
layout: tags
reward: false
---

分类抬头

1
2
3
4
5
6
7
---
title: 分类
date: 2019-04-24 15:30:30
type: categories
layout: categories
reward: false
---

图片设置

直接引用markdown插入

1
![lena](https://alexcld.com/images/pengyuyan.jpg)

使用html方法引入

  • 固定图片大小

    1
    <img src="https://alexcld.com/images/pengyuyan.jpg" width=256 height=256 />
  • 百分比的方式

    1
    <img src="https://alexcld.com/images/pengyuyan.jpg" width="50%" height="50%" />
  • 图像加个标注

1
2
3
4
<center>
<img src="https://alexcld.com/images/pengyuyan.jpg" width="25%" height="25%" />
Figure 1. xx
</center>
  • 图和标注间距离增大
    1
    2
    3
    4
    5
    <center>
    <img src="https://alexcld.com/images/pengyuyan.jpg" width="25%" height="25%" />
    $ $
    Figure 1. xx
    </center>

mellow

mellow