|
@@ -15,7 +15,9 @@ $ git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
|
|
|
|
|
|
### Enable
|
|
|
|
|
|
-Modify `theme` setting in `_config.yml` to `icarus`.
|
|
|
+1. Rename `themes\icarus\_config.yml.example` to `themes\icarus\_config.yml`;
|
|
|
+2. Copy `themes\icarus\_config.yml.site.example` to your hexo blog's root directory and rename it to `_config.yml`;
|
|
|
+3. Then modify `theme` setting in `_config.yml` to `icarus`.
|
|
|
|
|
|
### Update
|
|
|
|
|
@@ -27,11 +29,13 @@ git pull
|
|
|
## Configuration
|
|
|
|
|
|
### Theme configuration example
|
|
|
-``` yml
|
|
|
+```r
|
|
|
# Header
|
|
|
menu:
|
|
|
Home: /
|
|
|
Archives: /archives
|
|
|
+ Categories: /categories # -> you need to add extra page to enable this, please see the config below.
|
|
|
+ Tags: /tags # -> you need to add extra page to enable this, please see the config below.
|
|
|
About: /about
|
|
|
|
|
|
# Content
|
|
@@ -46,10 +50,11 @@ widgets:
|
|
|
- tag
|
|
|
- tagcloud
|
|
|
- archive
|
|
|
+thumbnail: true
|
|
|
|
|
|
# Contacts
|
|
|
contacts:
|
|
|
- github: http://github.com/ppoffice
|
|
|
+ github: http://github.com/ppoffice/hexo-theme-icarus
|
|
|
twitter: '#'
|
|
|
facebook: '#'
|
|
|
dribbble: '#'
|
|
@@ -68,15 +73,17 @@ fb_admins:
|
|
|
fb_app_id:
|
|
|
```
|
|
|
|
|
|
+- **excerpt_link** - Cooperate with `<!-- more -->` tag to show only part of the article in index pages.
|
|
|
- **fancybox** - Enable [Fancybox].
|
|
|
- **contacts** - Your social network links, RSS link, etc.
|
|
|
- **widgets** - Widgets displaying in sidebar.
|
|
|
+- **thumbnail** - Whether to show post thumbnails in the sidebar and archive pages.
|
|
|
- **links** - Links displayed in the link widget.
|
|
|
- **google_analytics** - Google Analytics ID.
|
|
|
- **favicon** - Favicon path.
|
|
|
|
|
|
### Site configuration example
|
|
|
-``` yml
|
|
|
+```r
|
|
|
# Site
|
|
|
title: Icarus
|
|
|
subtitle:
|
|
@@ -100,11 +107,23 @@ disqus_shortname:
|
|
|
- **location** - Where you live in.
|
|
|
- **disqus_shortname** - Your Disqus shortname.
|
|
|
|
|
|
+## Custom Categories & Tags Pages
|
|
|
+
|
|
|
+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:
|
|
|
+```r
|
|
|
+# Header
|
|
|
+menu:
|
|
|
+ ...
|
|
|
+ Categories: categories # -> add this line
|
|
|
+ Tags: tags # -> and add this line
|
|
|
+ ...
|
|
|
+```
|
|
|
+
|
|
|
## Languages
|
|
|
|
|
|
English and Simplified Chinese are the default languages of the theme. You can add translations in the `languages` folder and change the default language in blog's `_config.yml`.
|
|
|
|
|
|
-``` yml
|
|
|
+```r
|
|
|
language: zh-CN
|
|
|
```
|
|
|
|
|
@@ -116,12 +135,20 @@ A nice place to show yourself. You can add your own information in your site's `
|
|
|
|
|
|

|
|
|
|
|
|
+### Post Banner & Thumbnail
|
|
|
+
|
|
|
+Thanks to [atika](https://github.com/atika), you can now add thumbnails and banners to every post to create better reading experience.
|
|
|
+
|
|
|
### Responsive Layout
|
|
|
|
|
|
Icarus knows on what screen size you are browsering the website, and reorganize the layout to fit your device.
|
|
|
|
|
|

|
|
|
|
|
|
+### Custom Categories & Tags Pages
|
|
|
+
|
|
|
+Get your categories and tags listed in single pages to make your blog more methodic.
|
|
|
+
|
|
|
### Fancybox
|
|
|
|
|
|
Icarus uses [Fancybox] to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.
|
|
@@ -161,3 +188,4 @@ All of them are enabled by default. You can edit them in `widget` setting.
|
|
|
[Fancybox]: http://fancyapps.com/fancybox/
|
|
|
[Font Awesome]: http://fontawesome.io/
|
|
|
[Grunt]: http://gruntjs.com/
|
|
|
+
|