chore: update theme version and add travis ci

pull/701/head
ppoffice 2020-03-13 14:03:55 -04:00
parent 015c5b11f3
commit 1939672a0b
4 changed files with 223 additions and 110 deletions

25
.travis.yml Normal file
View File

@ -0,0 +1,25 @@
language: node_js
os: linux
cache: false
jobs:
include:
- stage: github pages
node_js: "10"
script:
- echo "Publish site to github pages ..."
- npm install -g hexo-cli
- cp _config.theme.yml themes/icarus/_config.yml
- ([[ -e _config.page.yml ]] && cp _config.page.yml themes/icarus/) || true
- ([[ -e _config.post.yml ]] && cp _config.post.yml themes/icarus/) || true
- hexo g
deploy:
provider: pages
token: $GITHUB_TOKEN
keep_history: false
local_dir: public
skip_cleanup: true
on:
tags: true

View File

@ -9,7 +9,7 @@
"bulma-stylus": "0.8.0", "bulma-stylus": "0.8.0",
"hexo": "^4.0.0", "hexo": "^4.0.0",
"hexo-algolia": "^1.3.1", "hexo-algolia": "^1.3.1",
"hexo-component-inferno": "^0.1.3", "hexo-component-inferno": "^0.2.0",
"hexo-deployer-git": "^2.0.0", "hexo-deployer-git": "^2.0.0",
"hexo-filter-github-emojis": "^2.1.0", "hexo-filter-github-emojis": "^2.1.0",
"hexo-generator-archive": "^1.0.0", "hexo-generator-archive": "^1.0.0",

View File

@ -2,137 +2,225 @@ title:
toc: true toc: true
--- ---
<p align="center" class="mb-2"> <p align="center" class="mb-2">
<img class="not-gallery-item" style="height:48px" src="/hexo-theme-icarus/img/logo.svg"> <img class="not-gallery-item" style="height:48px" src="https://ppoffice.github.io/hexo-theme-icarus/img/logo.svg">
<br> A simple, delicate, and modern theme for the static site generator Hexo. <br> A simple, delicate, and modern theme for the static site generator Hexo.
</p> <br>
<p class="is-size-6 has-text-centered"> <a href="https://ppoffice.github.io/hexo-theme-icarus/">Preview</a> |
<a href="http://ppoffice.github.io/hexo-theme-icarus/">Preview</a> | <a href="https://ppoffice.github.io/hexo-theme-icarus/categories/">Documentation</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> <a href="https://github.com/ppoffice/hexo-theme-icarus/archive/master.zip">Download</a>
</p> </p>
![Icarus](/hexo-theme-icarus/gallery/preview.png "Icarus Preview") ![Icarus](https://ppoffice.github.io/hexo-theme-icarus/gallery/preview.png?1 "Icarus Preview")
### :gift: Features
**Extensive Plugin Support**
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.
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/)
Search plugins
- [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/)
Share plugins
- [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/share-js-share-plugin/)
- [ShareThis](/hexo-theme-icarus/Plugins/Share/sharethis-share-plugin/)
Donation Buttons
- [Alipay](/hexo-theme-icarus/Plugins/Donation/making-money-off-your-blog-with-donation-buttons/#Alipay)
- [Wechat](/hexo-theme-icarus/Plugins/Donation/making-money-off-your-blog-with-donation-buttons/#Wechat)
- [Paypal](/hexo-theme-icarus/Plugins/Donation/making-money-off-your-blog-with-donation-buttons/#Paypal)
- [Patreon](/hexo-theme-icarus/Plugins/Donation/making-money-off-your-blog-with-donation-buttons/#Patreon)
Other plugins
- [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/)
**Rich Code Highlight Theme Choices**
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>
**Elastic Theme Configuration**
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.
<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>
**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.
![Responsive Layout](/hexo-theme-icarus/gallery/responsive.png)
### :cd: Installation ### :cd: Installation
Download & extract or `git clone` Icarus from GitHub to your blog's theme folder, and that's it! Download & extract or `git clone` Icarus from GitHub to your blog's theme folder, and that's it!
```shell ```shell
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus $ git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
$ hexo s // start a live server
``` ```
Once started, Icarus will remind you of any missing dependencies and configuration files. Once started, Icarus will remind you of any missing dependencies to install.
And it will create a theme configuration file (`_config.yml`) if it is not there.
### :gift: Features
**Cyberpunk Theme Variant**
Tap into the future cyber world with the newly added Cyberpunk theme variant.
Inspired by [Cyberpunk 2077](https://www.cyberpunk.net).
![Icarus Cyberpunk](https://ppoffice.github.io/hexo-theme-icarus/gallery/screenshots/cyberpunk.png "Icarus Cyberpunk")
**Extensive Plugin Support**
Icarus includes plentiful search, comment, sharing and other plugins out of the box that makes your
blog feature-rich and powerful.
<table>
<tr>
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Comment/">Comment</a></th>
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Donation/">Donation</a></th>
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Search/">Search</a></th>
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/">Share</a></th>
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/">Widgets</a></th>
<th><a href="https://blog.zhangruipeng.me/hexo-theme-icarus/categories/Plugins/General/">Other Plugins</a></th>
</tr>
<tr>
<td>Changyan</td>
<td>Alipay</td>
<td>Insight</td>
<td>AddThis</td>
<td>Google AdSense</td>
<td>Baidu Analytics</td>
</tr>
<tr>
<td>Disqus</td>
<td>Buy Me A Coffee</td>
<td>Algolia</td>
<td>AddToAny</td>
<td>Archives</td>
<td>BuSuanZi Vistor Counter</td>
</tr>
<tr>
<td>DisqusJS</td>
<td>Patreon</td>
<td>Google CSE</td>
<td>Baidu Share</td>
<td>Categories</td>
<td>CNZZ Analytics</td>
</tr>
<tr>
<td>Facebook</td>
<td>Paypal</td>
<td>Baidu</td>
<td>Share.js</td>
<td>External Site Links</td>
<td>Light and Justified Gallery</td>
</tr>
<tr>
<td>Gitalk</td>
<td>Wechat</td>
<td></td>
<td>ShareThis</td>
<td>Recent Posts</td>
<td>Google Analytics</td>
</tr>
<tr>
<td>Gitment</td>
<td></td>
<td></td>
<td></td>
<td>Google Feedburner</td>
<td>Hotjar User Feedback</td>
</tr>
<tr>
<td>Isso</td>
<td></td>
<td></td>
<td></td>
<td>Author Profile</td>
<td>KaTex</td>
</tr>
<tr>
<td>LiveRe</td>
<td></td>
<td></td>
<td></td>
<td>Tags</td>
<td>MathJax</td>
</tr>
<tr>
<td>Utterances</td>
<td></td>
<td></td>
<td></td>
<td>Table of Contents</td>
<td>Outdated Browser Detection</td>
</tr>
<tr>
<td>Valine</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>Page Loading Animations<br></td>
</tr>
</table>
**Rich Code Highlight Theme Choices**
Icarus directly import stylesheets from the [highlight.js](https://highlightjs.org/) package and makes more than
90 code highlight themes available to you.
<table>
<tr>
<th>Atom One Light</th>
<th>Monokai</th>
<th>Kimbie Dark</th>
</tr>
<tr>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/code-highlight/atom-one-light.png?2"></td>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/code-highlight/monokai.png?2"></td>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/code-highlight/kimbie-dark.png?2"></td>
</tr>
</table>
**Flexible Theme Configuration**
Icarus allows you to configure your site on a per-page or per-layout basis.
<table>
<tr>
<th>_config.yml</th>
<th>post.md</th>
<th>_config.page.yml</th>
</tr>
<tr>
<td>
{% codeblock %}
widgets:
- type: profile
position: left
- type: recent_posts
position: right
{% endcodeblock %}
</td>
<td>
{% codeblock %}
widgets:
- type: profile
position: left
- type: recent_posts
position: left
{% endcodeblock %}
</td>
<td>
{% codeblock %}
widgets: null
{% endcodeblock %}
</td>
</tr>
<tr>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/screenshots/default-config.png"></td>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/screenshots/post-config.png"></td>
<td><img width="266" src="https://ppoffice.github.io/hexo-theme-icarus/gallery/screenshots/layout-config.png"></td>
</tr>
</table>
<br>
**Responsive Layout**
Give your audiences best viewing experience with Icarus's mobile-friendly responsive layout.
![Responsive Layout](https://ppoffice.github.io/hexo-theme-icarus/gallery/responsive.png)
### :hammer: Development ### :hammer: Development
This project is built with This project is built with
- Hexo 3.7.1 - [Hexo](https://hexo.io/)
- Ejs - [Inferno.js](https://infernojs.org/)
- Stylus - [Stylus](https://stylus-lang.com/)
- Bulma 0.7.2 - [Bulma](https://bulma.io/)
Please refer to the documentation for Icarus implementation details. Please refer to the [documentation](https://ppoffice.github.io/hexo-theme-icarus/categories/) and
[contributing guide](https://github.com/ppoffice/hexo-theme-icarus/blob/master/CONTRIBUTING.md) for implementation details.
### :tada: Contribute ### :tada: Contribute
If you feel like to help us build a better Icarus, you can If you feel like to help us build a better Icarus, you can
- :electric_plug: Write a plugin :black_nib: [Submit a tutorial](https://github.com/ppoffice/hexo-theme-icarus/new/site/source/_posts) |
- :black_nib: <a href="https://github.com/ppoffice/hexo-theme-icarus/new/site/source/_posts">Submit a tutorial</a> :earth_asia: [Add a translation](https://github.com/ppoffice/hexo-theme-icarus/tree/master/languages) |
- :triangular_flag_on_post: <a href="https://github.com/ppoffice/hexo-theme-icarus/issues/new">Report a bug</a> :triangular_flag_on_post: [Report a bug](https://github.com/ppoffice/hexo-theme-icarus/issues/new) |
- :earth_asia: <a href="https://github.com/ppoffice/hexo-theme-icarus/tree/master/languages">Add a translation</a> :electric_plug: [Suggest a new feature](https://github.com/ppoffice/hexo-theme-icarus/pulls)
### :memo: License ### :memo: License

@ -1 +1 @@
Subproject commit 348eb7ca70f51eaacf0af755540ca27df65914b1 Subproject commit e12a4da76443b7bb93a96f34c41da8cfcd62257b