Chow's Notes

瞎折腾!关于hexo

终于折腾好了hexo,从wordpress挪窝了,这里记录下几个注意的问题

1.安装hexo后设置环境变量

在linux中永久生效,否则只在当前会话中有效。

1
2
3
vi /etc/profile
source /etc/profile
echo $PATH

2.文章中使用图片

安装插件

1
npm install https://github.com/CodeFalling/hexo-asset-image --save

更改站点配置文件参数

1
post_asset_folder: true

文章中可以如下使用

1
![](/shut-up-and-take-my-money.jpg)

如果安装了 hexo主题,可以使用如下标签

1
{% fullimage /shut-up-and-take-my-money.jpg, alt, title %}

3.markdown语法注意

符号后面,只有一个空格,否则生成失败