hexo icarus

install

1
2
3
4
5
6
# cd /d/WorkPlace/myHexo
# git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
git clone git@github.com:luochunhai/my_hexo_icarus.git themes/icarus

npm install hexo-theme-icarus
hexo config theme icarus

添加头像

1 更改主题配置文件

1
2
cd 博客目录
vim _config.icarus.yml

找到下面这行,取消注释即可。

1
2
avatar: /images/avatar_2.gif

上传自定义的图片到下列目录:

1
2
博客目录/themes/icarus/source/images/

然后在上面的主题配置文件中更改相应路径即可。

调整整体宽度

ref: https://blog.csdn.net/ye17186/article/details/111564883

在node_modules\hexo-theme-icarus\include\style目录下,找到responsive.styl,将widescreen样式中:

1
2
3
4
5
widescreen()
.is-1-column .container, .is-2-column .container
max-width: $desktop - 2 * $gap
width: $desktop - 2 * $gap

改成:

1
2
3
4
+widescreen()
.is-1-column .container, .is-2-column .container
max-width: $widescreen - 2 * $gap
width: $widescreen - 2 * $gap

Ref

评论