feat(theme): add donation buttons

pull/701/head
ppoffice 2018-12-23 15:13:01 -05:00
parent 185f50a3c3
commit 0d26676310
6 changed files with 124 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Version of the Icarus theme that is currently used
version: 2.0.0
version: 2.3.0
# Path or URL to the website's icon
favicon: /images/favicon.svg
# Path or URL to RSS atom.xml
@ -66,6 +66,31 @@ comment:
# Name of the comment plugin
type: disqus
shortname: hexo-theme-icarus
# Donation entries
# http://ppoffice.github.io/hexo-theme-icarus/categories/Donation/
donate:
-
# Donation entry name
type: alipay
# Qrcode image URL
qrcode: /gallery/donate/alipay.png
-
# Donation entry name
type: wechat
# Qrcode image URL
qrcode: /gallery/donate/wechat.jpg
-
# Donation entry name
type: paypal
# Paypal business ID or email address
business: paypal@paypal.com
# Currency code
currency_code: USD
-
# Donation entry name
type: patreon
# URL to the Patreon page
url: https://www.patreon.com/
# Share plugin settings
# http://ppoffice.github.io/hexo-theme-icarus/categories/Configuration/Share-Plugins
share:
@ -89,14 +114,23 @@ sidebar:
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:
-
# Widget name
type: profile
# Where should the widget be placed, left or right
position: left
# Author name to be shown in the profile widget
author: PPOffice
# Title of the author to be shown in the profile widget
author_title: Web Developer
# Author's current location to be shown in the profile widget
location: Earth, Solar System
# Path or URL to the avatar to be shown in the profile widget
avatar:
# Email address for the Gravatar to be shown in the profile widget
gravatar:
# Path or URL for the follow button
follow_link: 'http://github.com/ppoffice'
# Links to be shown on the bottom of the profile widget
social_links:
Github:
icon: fab fa-github
@ -114,28 +148,43 @@ widgets:
icon: fas fa-rss
url: /
-
# Widget name
type: toc
# Where should the widget be placed, left or right
position: left
-
# Widget name
type: links
# Where should the widget be placed, left or right
position: left
# Links to be shown in the links widget
links:
Hexo: 'https://hexo.io'
Bulma: 'https://bulma.io'
-
# Widget name
type: category
# Where should the widget be placed, left or right
position: left
-
# Widget name
type: tagcloud
# Where should the widget be placed, left or right
position: left
-
# Widget name
type: recent_posts
# Where should the widget be placed, left or right
position: right
-
# Widget name
type: archive
# Where should the widget be placed, left or right
position: right
-
# Widget name
type: tag
# Where should the widget be placed, left or right
position: right
# Other plugin settings
plugins:

View File

@ -0,0 +1,63 @@
title: Making Money off Your Blog with Donation Buttons
date: 2016-01-30
donate:
-
type: alipay
qrcode: /gallery/donate/alipay.png
-
type: wechat
qrcode: /gallery/donate/wechat.jpg
-
type: paypal
business: paypal@paypal.com
currency_code: USD
-
type: patreon
url: https://www.patreon.com/
categories:
- Plugins
- Donation
---
To enable donation buttons right below the post content, fill out the `donate` section in the theme's `_config.yml` file. The following donation entries are currently supported by Icarus. You can always use one or more of these donation entries in your blog.
<!-- more -->
### Alipay
```yml
donate:
-
type: alipay
qrcode: # the URL to your qrcode image
```
### Wechat
```yml
donate:
-
type: wechat
qrcode: # the URL to your qrcode image
```
### Paypal
You need to enable the paypal donation button at [Paypal Donate Button](https://www.paypal.com/donate/buttons/). Once you're done, please find the `business` and `currency_code` in the generated code and fill them in the `_config.yml`.
```yml
donate:
-
type: paypal
business: # Your paypal email address or generated business ID
currency_code: # currency code
```
### Patreon
```yml
donate:
-
type: patreon
url: # the URL to your Patreon page
```

View File

@ -6,7 +6,7 @@ toc: true
<br> A simple, delicate, and modern 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/">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>
@ -44,6 +44,13 @@ Share plugins
- [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/)
@ -53,7 +60,7 @@ Other plugins
**Rich Code Highlight Theme Choices**
Icarus directly import code highlight themes from the [highlight.js](https://highlightjs.org/) package, and makes more than
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">
@ -64,7 +71,7 @@ Icarus directly import code highlight themes from the [highlight.js](https://hig
**Elastic Theme Configuration**
In addition to the minimalistic and easy-to-understand configuration design, Icarus allows you to set configurations on a
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">

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

@ -1 +1 @@
Subproject commit 90414e806275d8fbe714a13fda934a24ee47d949
Subproject commit b913e648f381f123e54f1a4ba2bd70d66752c13e