icarus主题的使用

icarus主题的使用

初始化

1
2
3
$ hexo init <folder>
$ cd <folder>
$ npm install

安装主题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
Rename
'themes\icarus\_config.yml.example'
to
'themes\icarus\_config.yml' ;
Copy
'themes\icarus\_config.yml.site.example'
to
your hexo blog's root directory and rename it
to '_config.yml' ;
Then modify
'theme'
setting in '_config.yml'
to 'icarus'.

更新

1
2
$ cd themes/icarus
$ git pull

Categories & Tags 的使用问题

1
2
3
4
5
6
7
8
9
10
To enable custom categories page and tags page,
just copy the categories folder and tags folder under your theme's _source foler
into your site's source folder. Then edit theme's _config.yml and add the following lines:
# Header
menu:
`
Categories: categories # -> add this line
Tags: tags # -> and add this line
`

RSS的使用问题

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ npm install hexo-generator-feed --save
In _config.yml:
`
plugins:
- hexo-generator-feed
`
In the theme configuration:
# Header
menu:
`
RSS: atom.xml <<< add
`

自定义文章的缩略图

1
2
thumbnail: http://example.com/thumbnail.jpg <<< add
banner: http://example.com/banner.jpg <<< add