chore(*): update again for v2
|
@ -14,7 +14,7 @@ timezone:
|
||||||
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||||
url: http://ppoffice.github.io
|
url: http://ppoffice.github.io
|
||||||
root: /hexo-theme-icarus/
|
root: /hexo-theme-icarus/
|
||||||
permalink: :year/:month/:day/:title/
|
permalink: :category/:post_title/
|
||||||
permalink_defaults:
|
permalink_defaults:
|
||||||
|
|
||||||
# Directory
|
# Directory
|
||||||
|
@ -84,3 +84,9 @@ deploy:
|
||||||
type: git
|
type: git
|
||||||
repository: git@github.com:ppoffice/hexo-theme-icarus.git
|
repository: git@github.com:ppoffice/hexo-theme-icarus.git
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
|
|
||||||
|
marked:
|
||||||
|
gfm: false
|
||||||
|
|
||||||
|
githubEmojis:
|
||||||
|
className: not-gallery-item
|
|
@ -7,7 +7,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hexo": "^3.7.1",
|
"hexo": "^3.7.1",
|
||||||
|
"hexo-all-minifier": "^0.5.2",
|
||||||
"hexo-deployer-git": "^0.3.1",
|
"hexo-deployer-git": "^0.3.1",
|
||||||
|
"hexo-filter-github-emojis": "^2.0.0",
|
||||||
"hexo-generator-archive": "^0.1.4",
|
"hexo-generator-archive": "^0.1.4",
|
||||||
"hexo-generator-category": "^0.1.3",
|
"hexo-generator-category": "^0.1.3",
|
||||||
"hexo-generator-index": "^0.2.0",
|
"hexo-generator-index": "^0.2.0",
|
||||||
|
|
|
@ -0,0 +1,54 @@
|
||||||
|
const cheerio = require('cheerio');
|
||||||
|
|
||||||
|
function addBanner(content) {
|
||||||
|
const $ = cheerio.load(content, { decodeEntities: false });
|
||||||
|
$('body > .section > .container').prepend(`
|
||||||
|
<div id="icarus-notify-pre-release" class="notification is-warning">
|
||||||
|
<button class="delete"></button>
|
||||||
|
Now you are viewing the documentation of a pre-release version Icarus. Please be aware that content on this website are subject to change.
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
!function () {
|
||||||
|
function setCookie(name, value, days) {
|
||||||
|
var expires = "";
|
||||||
|
if (days) {
|
||||||
|
var date = new Date();
|
||||||
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
||||||
|
expires = "; expires=" + date.toUTCString();
|
||||||
|
}
|
||||||
|
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCookie(name) {
|
||||||
|
var nameEQ = name + "=";
|
||||||
|
var ca = document.cookie.split(';');
|
||||||
|
for (var i = 0; i < ca.length; i++) {
|
||||||
|
var c = ca[i];
|
||||||
|
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
||||||
|
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeHtml(selector) {
|
||||||
|
document.querySelector(selector).parentNode.removeChild(document.querySelector(selector));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (getCookie('icarus-notify-pre-release')) {
|
||||||
|
removeHtml('#icarus-notify-pre-release');
|
||||||
|
}
|
||||||
|
if (document.querySelector('#icarus-notify-pre-release .delete')) {
|
||||||
|
document.querySelector('#icarus-notify-pre-release .delete').addEventListener('click', function () {
|
||||||
|
setCookie('icarus-notify-pre-release', true);
|
||||||
|
removeHtml('#icarus-notify-pre-release');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}();
|
||||||
|
</script>
|
||||||
|
`);
|
||||||
|
return $.html();
|
||||||
|
}
|
||||||
|
|
||||||
|
hexo.extend.filter.register('after_render:html', function (content, data) {
|
||||||
|
return addBanner(content);
|
||||||
|
});
|
|
@ -0,0 +1,43 @@
|
||||||
|
title: Getting Started with Icarus
|
||||||
|
date: 2018-10-22 19:23:59
|
||||||
|
thumbnail: /gallery/desert.jpg
|
||||||
|
tags:
|
||||||
|
- Getting Started
|
||||||
|
---
|
||||||
|
Icarus is a modern, simple, and delicate theme for the static site generator Hexo. Its versatile layout configuration allows you to set up a single or multiple-column (up to three column) blog easily. Additionally, it offers plentiful [plugins](/hexo-theme-icarus/categories/Plugins/) and pluggable [widgets](/hexo-theme-icarus/categories/Widgets/) so that you can enable the features you want in no time. And with the all-new API designing, Icarus makes the development of this theme painless for developers and users.
|
||||||
|
|
||||||
|
<!-- more -->
|
||||||
|
|
||||||
|
To get started with Icarus, download and unzip the GitHub repository to your Hexo blog's theme directory or run the following command from your blog's root directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also specify a version for Icarus after downloading the theme through `git`. Replace the version code in the following command and execute:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout 2.0.0
|
||||||
|
```
|
||||||
|
|
||||||
|
Furthermore, you can install Icarus as a git submodule by calling the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule add https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
|
||||||
|
```
|
||||||
|
|
||||||
|
Next, replace the theme setting in your blog's `_config.yml` file:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
theme: icarus
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, use the following command to start the Hexo local server and begin composing!
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
hexo s
|
||||||
|
```
|
||||||
|
|
||||||
|
> Don't forget to check out the [Getting Started](/hexo-theme-icarus/tags/Getting-Started/) series to help you master the Icarus quickly! Also, you can switch the [`site` branch](https://github.com/ppoffice/hexo-theme-icarus/tree/site) in the Icarus repository if you need further examples about installation and configuration.
|
||||||
|
|
||||||
|
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-size:12px;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@yazi0413?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Chandler Chen"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span><span style="display:inline-block;padding:2px 3px">Chandler Chen</span></a>
|
|
@ -1,8 +1,8 @@
|
||||||
title: Changyan Comment Plugin
|
title: Changyan Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
comment:
|
comment:
|
||||||
type: changyan
|
type: changyan
|
||||||
appid: cyrDUlCiF
|
appid: cyrDUlCiF
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Disqus Comment Plugin
|
title: Disqus Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
tags:
|
tags:
|
||||||
- Getting Started
|
- Getting Started
|
||||||
comment:
|
comment:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Facebook Comment Plugin
|
title: Facebook Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
comment:
|
comment:
|
||||||
type: facebook
|
type: facebook
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Gitment Comment Plugin
|
title: Gitment Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
comment:
|
comment:
|
||||||
type: gitment
|
type: gitment
|
||||||
owner: ppoffice
|
owner: ppoffice
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Isso Comment Plugin
|
title: Isso Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
---
|
---
|
||||||
|
|
||||||
[Installation instructions](https://posativ.org/isso/docs/quickstart/#integration)
|
[Installation instructions](https://posativ.org/isso/docs/quickstart/#integration)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: LiveRe Comment Plugin
|
title: LiveRe Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
comment:
|
comment:
|
||||||
type: livere
|
type: livere
|
||||||
uid: MTAyMC8zNTExMS8xMTY0Ng==
|
uid: MTAyMC8zNTExMS8xMTY0Ng==
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Valine Comment Plugin
|
title: Valine Comment Plugin
|
||||||
date: 2017-01-01
|
date: 2017-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Comment Plugins
|
- Comment
|
||||||
comment:
|
comment:
|
||||||
type: valine
|
type: valine
|
||||||
app_id: QuQK82UpN8gNkXIaKIszbPUY-gzGzoHsz
|
app_id: QuQK82UpN8gNkXIaKIszbPUY-gzGzoHsz
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Site Analytics Plugin
|
title: Site Analytics Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Other Plugins
|
- General
|
||||||
---
|
---
|
||||||
|
|
||||||
### Google Analytics
|
### Google Analytics
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Gallery Plugin
|
title: Gallery Plugin
|
||||||
date: 2016-07-08 00:00:00
|
date: 2016-07-08 00:00:00
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Other Plugins
|
- General
|
||||||
---
|
---
|
||||||
|
|
||||||
{% quote %}
|
{% quote %}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: MathJax Plugin
|
title: MathJax Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Other Plugins
|
- General
|
||||||
tags:
|
tags:
|
||||||
thumbnail: /gallery/math.jpg
|
thumbnail: /gallery/math.jpg
|
||||||
---
|
---
|
||||||
|
@ -67,3 +67,5 @@ When \`a != 0\`, there are two solutions to \`ax^2 + bx + c = 0\` and they are<p
|
||||||
|
|
||||||
##### Result
|
##### Result
|
||||||
When \`a != 0\`, there are two solutions to \`ax^2 + bx + c = 0\` and they are<p style="text-align:center">\`x = (-b +- sqrt(b^2-4ac))/(2a) .\`</p>
|
When \`a != 0\`, there are two solutions to \`ax^2 + bx + c = 0\` and they are<p style="text-align:center">\`x = (-b +- sqrt(b^2-4ac))/(2a) .\`</p>
|
||||||
|
|
||||||
|
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-size:12px;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@jeshoots?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from JESHOOTS.COM"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span><span style="display:inline-block;padding:2px 3px">JESHOOTS.COM</span></a>
|
|
@ -203,7 +203,7 @@ Inserts an image with specified size.
|
||||||
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
|
{% img [class names] /path/to/image [width] [height] [title text [alt text]] %}
|
||||||
```
|
```
|
||||||
|
|
||||||
{% img /gallery/forest.jpg 100% 100% '"Forest path" "Forest path"' %}
|
{% img /gallery/desert.jpg 100% 100% '"Desert" "Desert"' %}
|
||||||
|
|
||||||
## Link
|
## Link
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,11 @@ categories:
|
||||||
toc: true
|
toc: true
|
||||||
---
|
---
|
||||||
Add the highlighted line to the front-matter of your post Markdown file:
|
Add the highlighted line to the front-matter of your post Markdown file:
|
||||||
```diff
|
{% codeblock lang:diff _config.yml %}
|
||||||
title: Table of Contents Example
|
title: Table of Contents Example
|
||||||
date: 2015-03-10 22:46:00
|
date: 2015-03-10 22:46:00
|
||||||
banner: /hexo-theme-hueman/gallery/little-girl.jpg
|
|
||||||
+ toc: true
|
+ toc: true
|
||||||
```
|
{% endcodeblock %} And that's it!
|
||||||
And that's it!
|
|
||||||
<!-- more -->
|
<!-- more -->
|
||||||
|
|
||||||
# First level title
|
# First level title
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Baidu Search Plugin
|
title: Baidu Search Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Search Plugins
|
- Search
|
||||||
search:
|
search:
|
||||||
type: baidu
|
type: baidu
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
title: Google CSE Plugin
|
title: Google CSE Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Search Plugins
|
- Search
|
||||||
search:
|
search:
|
||||||
type: google-cse
|
type: google-cse
|
||||||
cx: 006888261376761189075:h9ecq7wzdlc
|
cx: 006888261376761189075:qxqdcvqzio0
|
||||||
---
|
---
|
||||||
|
|
||||||
[Installation instructions](https://cse.google.com/cse/create/new)
|
[Installation instructions](https://cse.google.com/cse/create/new)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Insight Search Plugin
|
title: Insight Search Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Search Plugins
|
- Search
|
||||||
tags:
|
tags:
|
||||||
- Getting Started
|
- Getting Started
|
||||||
search:
|
search:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: AddThis Share Plugin
|
title: AddThis Share Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Share Plugins
|
- Share
|
||||||
share:
|
share:
|
||||||
type: addthis
|
type: addthis
|
||||||
install_url: //s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5ab6fa5759854232
|
install_url: //s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5ab6fa5759854232
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: AddToAny Share Plugin
|
title: AddToAny Share Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Share Plugins
|
- Share
|
||||||
share:
|
share:
|
||||||
type: addtoany
|
type: addtoany
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Baidu Share Plugin
|
title: Baidu Share Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Share Plugins
|
- Share
|
||||||
share:
|
share:
|
||||||
type: bdshare
|
type: bdshare
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: ShareThis Share Plugin
|
title: ShareThis Share Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Share Plugins
|
- Share
|
||||||
tags:
|
tags:
|
||||||
- Getting Started
|
- Getting Started
|
||||||
share:
|
share:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
title: Share.js Share Plugin
|
title: Share.js Share Plugin
|
||||||
date: 2018-01-01
|
date: 2018-01-01
|
||||||
categories:
|
categories:
|
||||||
- Configuration
|
- Plugins
|
||||||
- Share Plugins
|
- Share
|
||||||
share:
|
share:
|
||||||
type: sharejs
|
type: sharejs
|
||||||
---
|
---
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
title: Links Sidebar Widget
|
||||||
|
date: 2018-02-01
|
||||||
|
categories:
|
||||||
|
- Widgets
|
||||||
|
---
|
||||||
|
|
||||||
|
You can show a list of links to other websites in the sidebar by enabling the links widget. Add the following configuration to the `widgets` section in your `_config.yml` file and you are good to go:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
-
|
||||||
|
type: links
|
||||||
|
position: left
|
||||||
|
links:
|
||||||
|
'Website name': 'http://website/url'
|
||||||
|
Hexo: 'https://hexo.io'
|
||||||
|
PPOffice: 'https://github.com/ppoffice'
|
||||||
|
```
|
||||||
|
|
||||||
|
One thing you should note is that the links widget only takes a list of website name and URL, and the URL is displayed on the right side of the widget.
|
|
@ -0,0 +1,60 @@
|
||||||
|
title: Profile Sidebar Widget
|
||||||
|
date: 2018-02-01
|
||||||
|
categories:
|
||||||
|
- Widgets
|
||||||
|
tags:
|
||||||
|
- Getting Started
|
||||||
|
widgets:
|
||||||
|
-
|
||||||
|
type: profile
|
||||||
|
position: right
|
||||||
|
author: hulatocat
|
||||||
|
author_title: A GitHub Octocat
|
||||||
|
location: GitHub Inc.
|
||||||
|
avatar: https://octodex.github.com/images/hula_loop_octodex03.gif
|
||||||
|
gravatar:
|
||||||
|
follow_link: https://octodex.github.com/hulatocat
|
||||||
|
social_links:
|
||||||
|
Github:
|
||||||
|
icon: fab fa-github
|
||||||
|
url: 'http://github.com/'
|
||||||
|
Icarus:
|
||||||
|
icon: fas fa-palette
|
||||||
|
url: 'http://github.com/ppoffice/hexo-theme-icarus'
|
||||||
|
---
|
||||||
|
|
||||||
|
Icarus offers a way to showcase yourself using the profile sidebar widget. To use this widget, simply add the following lines to the widgets section of your `_config.yml`:
|
||||||
|
|
||||||
|
{% codeblock lang:yaml _config.yml %}
|
||||||
|
-
|
||||||
|
type: profile
|
||||||
|
position: # show in left or right sidebar
|
||||||
|
author: # your name
|
||||||
|
author_title: # your title
|
||||||
|
location: # where are you
|
||||||
|
avatar: # path or url to your avatar image
|
||||||
|
gravatar: # your gravatar email
|
||||||
|
follow_link: # path or url to any page you want
|
||||||
|
social_links: # add links to your social network here
|
||||||
|
{% endcodeblock%}
|
||||||
|
<!-- more -->
|
||||||
|
There are two things that you should note:
|
||||||
|
- If you want to [Gravatar](https://en.gravatar.com/), fill in your email in the `gravatar` field. Otherwise, leave it blank or it will override the avatar setting.
|
||||||
|
- The `social_links` field accepts an array of links which are either shown as text link or icon link:
|
||||||
|
- Text link
|
||||||
|
```yml
|
||||||
|
social_links:
|
||||||
|
Facebook: http://facebook.com
|
||||||
|
Twitter: http://twitter.com
|
||||||
|
```
|
||||||
|
- Icon link
|
||||||
|
```yml
|
||||||
|
social_links:
|
||||||
|
Facebook:
|
||||||
|
icon: fab fa-facebook
|
||||||
|
url: http://facebook.com
|
||||||
|
Twitter:
|
||||||
|
icon: fab fa-twitter
|
||||||
|
url: http://twitter.com
|
||||||
|
```
|
||||||
|
The `icon` here refers to the [Font Awesome](https://fontawesome.com/) icon class name by default, which you can find in the Font Awesome icon details page.
|
|
@ -1,59 +1,128 @@
|
||||||
title: About Icarus
|
title:
|
||||||
---
|
---
|
||||||
|
<p align="center" class="has-mb-6">
|
||||||
|
<img class="not-gallery-item" style="height:48px" src="/hexo-theme-icarus/images/logo.svg">
|
||||||
|
<br> A modern, simple, and delicate theme for the static site generator Hexo.
|
||||||
|
</p>
|
||||||
|
<p class="is-size-6 has-text-centered">
|
||||||
|
<a href="http://ppoffice.github.io/hexo-theme-icarus/">Preview</a> |
|
||||||
|
<a href="http://ppoffice.github.io/hexo-theme-icarus/categories/">Documentation</a> |
|
||||||
|
<a href="https://github.com/ppoffice/hexo-theme-icarus/archive/master.zip">Download</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
### The blog theme you may fall in love with, coming to Hexo. [Preview](http://ppoffice.github.io/hexo-theme-icarus/)
|

|
||||||

|
|
||||||
|
|
||||||
#### [View Documentation](https://github.com/ppoffice/hexo-theme-icarus/wiki)
|
### :gift: Features
|
||||||
It is strongly recommended that you read the docs before using Icarus.
|
|
||||||
|
|
||||||
## Features
|
**Extensive Plugin Support**
|
||||||
|
|
||||||
### Profile Sidebar
|
Icarus includes plentiful search, comment, sharing and other plugins out of the box. You can choose any of them to enrich your
|
||||||
|
blog experience, or build your own plugin easily referring to the existing Icarus plugins.
|
||||||
|
|
||||||
A nice place to show yourself. You can add your own information in your site's `_config.yml`
|
Comment plugins
|
||||||
|
|
||||||

|
- [Changyan](/hexo-theme-icarus/Plugins/Comment/changyan-comment-plugin/)
|
||||||
|
- [Disqus](/hexo-theme-icarus/Plugins/Comment/disqus-comment-plugin/)
|
||||||
|
- [Facebook](/hexo-theme-icarus/Plugins/Comment/facebook-comment-plugin/)
|
||||||
|
- [Gitment](/hexo-theme-icarus/Plugins/Comment/gitment-comment-plugin/)
|
||||||
|
- [Isso](/hexo-theme-icarus/Plugins/Comment/isso-comment-plugin/)
|
||||||
|
- [LiveRe](/hexo-theme-icarus/Plugins/Comment/livere-comment-plugin/)
|
||||||
|
- [Valine](/hexo-theme-icarus/Plugins/Comment/valine-comment-plugin/)
|
||||||
|
|
||||||
### Self-hosted Insite Search Engine
|
Search plugins
|
||||||
With the help of [Insight Search](https://github.com/ppoffice/hexo-theme-icarus/wiki/Search#insight-search), you can search anything inside your site without any third-party plugin.
|
|
||||||
|
|
||||||

|
- [Insight Search](/hexo-theme-icarus/Plugins/Search/insight-search-plugin/)
|
||||||
|
- [Google Custom Search Engine](/hexo-theme-icarus/Plugins/Search/google-cse-plugin/)
|
||||||
|
- [Baidu Site Search](/hexo-theme-icarus/Plugins/Search/baidu-search-plugin/)
|
||||||
|
|
||||||
### Custom Comment Services
|
Share plugins
|
||||||
Icarus supports several comment services, give you better choices to communicate with your readers.
|
|
||||||
|
|
||||||

|
- [AddThis](/hexo-theme-icarus/Plugins/Share/addthis-share-plugin/)
|
||||||
|
- [AddToAny](/hexo-theme-icarus/Plugins/Share/addtoany-share-plugin/)
|
||||||
|
- [Baidu Share](/hexo-theme-icarus/Plugins/Share/baidu-share-plugin/)
|
||||||
|
- [Share.js](/hexo-theme-icarus/Plugins/Share/sharejs-share-plugin/)
|
||||||
|
- [ShareThis](/hexo-theme-icarus/Plugins/Share/sharethis-share-plugin/)
|
||||||
|
|
||||||
### Post Banner & Thumbnail
|
Other plugins
|
||||||
|
|
||||||
Thanks to [atika](https://github.com/atika), you can now [add thumbnails or banners](https://github.com/ppoffice/hexo-theme-icarus/wiki/Theme#thumbnail) to every post to create better reading experience.
|
- [Hexo Tag Plugin](/hexo-theme-icarus/Configuration/Posts/hexo-built-in-tag-helpers/)
|
||||||
|
- [lightGallery & Justified Gallery](/hexo-theme-icarus/Plugins/General/gallery-plugin/)
|
||||||
|
- [MathJax](/hexo-theme-icarus/Plugins/General/mathjax-plugin/)
|
||||||
|
- [Site Analytics](/hexo-theme-icarus/Plugins/General/site-analytics-plugin/)
|
||||||
|
|
||||||
### Responsive Layout
|
**Rich Code Highlight Theme Choices**
|
||||||
|
|
||||||
Icarus knows on what screen size you are browsering the website, and reorganize the layout to fit your device.
|
Icarus directly import code highlight themes from the [highlight.js](https://highlightjs.org/) package, and makes more than
|
||||||
|
70 highlight themes available to you.
|
||||||
|
|
||||||

|
<div class="columns is-multiline is-mobile">
|
||||||
|
<div class="column is-half-mobile"><img src="/hexo-theme-icarus/gallery/code-highlight/atom-one-light.png"></div>
|
||||||
|
<div class="column is-half-mobile"><img src="/hexo-theme-icarus/gallery/code-highlight/monokai.png"></div>
|
||||||
|
<div class="column is-half-mobile"><img src="/hexo-theme-icarus/gallery/code-highlight/androidstudio.png"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
### Custom Categories & Tags Pages
|
**Elastic Theme Configuration**
|
||||||
|
|
||||||
Get your categories and tags listed in single pages to make your blog more methodic.
|
In addition to the minimalistic and easy-to-understand configuration design, Icarus allows you to set configurations on a
|
||||||
|
per-page basis with the ability to merge and override partial configurations.
|
||||||
|
|
||||||
### lightgallery
|
<div class="columns is-multiline">
|
||||||
|
<div class="column is-half is-12-mobile">
|
||||||
|
{% codeblock lang:yaml _config.yml %}
|
||||||
|
menu:
|
||||||
|
Archives: /archives
|
||||||
|
Categories: /categories
|
||||||
|
Tags: /tags
|
||||||
|
About: /about
|
||||||
|
{% endcodeblock %}
|
||||||
|
<img class="not-gallery-item" style="height:44px" src="/hexo-theme-Icarus/gallery/navbar/main-config.png">
|
||||||
|
</div>
|
||||||
|
<div class="column is-half is-12-mobile">
|
||||||
|
{% codeblock lang:yaml post.md %}
|
||||||
|
title: A Simple Post
|
||||||
|
menu:
|
||||||
|
Go Home: /index.html
|
||||||
|
---
|
||||||
|
# Here is some simple markdown.
|
||||||
|
{% endcodeblock %}
|
||||||
|
<img class="not-gallery-item" style="height:44px" src="/hexo-theme-Icarus/gallery/navbar/post-config.png">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
Icarus uses [lightgallery.js](https://sachinchoolur.github.io/lightgallery.js/) to showcase your photos. Just enable it in your configuration, and that's all!
|
**Responsive Layout**
|
||||||
|
|
||||||

|
No matter what modern browsering device your audiences are using, they can always get the best experience because Icarus's responsive
|
||||||
|
layout across multiple viewpoints.
|
||||||
|
|
||||||
### Sidebar
|

|
||||||
|
|
||||||
Icarus provides 6 built-in widgets:
|
### :cd: Installation
|
||||||
|
|
||||||
- recent_posts
|
Download & extract or `git clone` Icarus from GitHub to your blog's theme folder, and that's it!
|
||||||
- category
|
|
||||||
- archives
|
|
||||||
- tag
|
|
||||||
- tagcloud
|
|
||||||
- links
|
|
||||||
|
|
||||||
All of them are enabled by default. You can edit them in `widget` setting.
|
```shell
|
||||||
|
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
|
||||||
|
```
|
||||||
|
|
||||||
|
Once started, Icarus will remind you of any missing dependencies and configuration files.
|
||||||
|
|
||||||
|
### :hammer: Development
|
||||||
|
|
||||||
|
This project is built with
|
||||||
|
|
||||||
|
- Hexo 3.7.1
|
||||||
|
- Ejs
|
||||||
|
- Stylus
|
||||||
|
- Bulma 0.7.2
|
||||||
|
|
||||||
|
Please refer to the documentation for Icarus implementation details.
|
||||||
|
|
||||||
|
### :tada: Contribute
|
||||||
|
|
||||||
|
- :electric_plug: Write a plugin
|
||||||
|
- :triangular_flag_on_post: <a href="https://github.com/ppoffice/hexo-theme-icarus/issues/new">Report a bug</a>
|
||||||
|
- :earth_asia: <a href="https://github.com/ppoffice/hexo-theme-icarus/tree/master/languages">Add a translation</a>
|
||||||
|
|
||||||
|
### :memo: License
|
||||||
|
|
||||||
|
This project is licensed under the MIT License - see the [LICENSE](https://github.com/ppoffice/hexo-theme-icarus/blob/master/LICENSE) file for details.
|
||||||
|
|
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 272 KiB |
Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 333 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 408 KiB |
After Width: | Height: | Size: 490 KiB |
After Width: | Height: | Size: 1016 KiB |
|
@ -1 +1 @@
|
||||||
Subproject commit 7f845e2320efbb70980b9365b0813ec1b73a20cf
|
Subproject commit 9a94031465515881f5796e1dbadb5ba0da6352b8
|