feat(theme): add donation buttons
parent
185f50a3c3
commit
0d26676310
|
@ -1,5 +1,5 @@
|
||||||
# Version of the Icarus theme that is currently used
|
# 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
|
# Path or URL to the website's icon
|
||||||
favicon: /images/favicon.svg
|
favicon: /images/favicon.svg
|
||||||
# Path or URL to RSS atom.xml
|
# Path or URL to RSS atom.xml
|
||||||
|
@ -66,6 +66,31 @@ comment:
|
||||||
# Name of the comment plugin
|
# Name of the comment plugin
|
||||||
type: disqus
|
type: disqus
|
||||||
shortname: hexo-theme-icarus
|
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
|
# Share plugin settings
|
||||||
# http://ppoffice.github.io/hexo-theme-icarus/categories/Configuration/Share-Plugins
|
# http://ppoffice.github.io/hexo-theme-icarus/categories/Configuration/Share-Plugins
|
||||||
share:
|
share:
|
||||||
|
@ -89,14 +114,23 @@ sidebar:
|
||||||
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
|
# http://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
|
||||||
widgets:
|
widgets:
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: profile
|
type: profile
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: left
|
position: left
|
||||||
|
# Author name to be shown in the profile widget
|
||||||
author: PPOffice
|
author: PPOffice
|
||||||
|
# Title of the author to be shown in the profile widget
|
||||||
author_title: Web Developer
|
author_title: Web Developer
|
||||||
|
# Author's current location to be shown in the profile widget
|
||||||
location: Earth, Solar System
|
location: Earth, Solar System
|
||||||
|
# Path or URL to the avatar to be shown in the profile widget
|
||||||
avatar:
|
avatar:
|
||||||
|
# Email address for the Gravatar to be shown in the profile widget
|
||||||
gravatar:
|
gravatar:
|
||||||
|
# Path or URL for the follow button
|
||||||
follow_link: 'http://github.com/ppoffice'
|
follow_link: 'http://github.com/ppoffice'
|
||||||
|
# Links to be shown on the bottom of the profile widget
|
||||||
social_links:
|
social_links:
|
||||||
Github:
|
Github:
|
||||||
icon: fab fa-github
|
icon: fab fa-github
|
||||||
|
@ -114,28 +148,43 @@ widgets:
|
||||||
icon: fas fa-rss
|
icon: fas fa-rss
|
||||||
url: /
|
url: /
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: toc
|
type: toc
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: left
|
position: left
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: links
|
type: links
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: left
|
position: left
|
||||||
|
# Links to be shown in the links widget
|
||||||
links:
|
links:
|
||||||
Hexo: 'https://hexo.io'
|
Hexo: 'https://hexo.io'
|
||||||
Bulma: 'https://bulma.io'
|
Bulma: 'https://bulma.io'
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: category
|
type: category
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: left
|
position: left
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: tagcloud
|
type: tagcloud
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: left
|
position: left
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: recent_posts
|
type: recent_posts
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: right
|
position: right
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: archive
|
type: archive
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: right
|
position: right
|
||||||
-
|
-
|
||||||
|
# Widget name
|
||||||
type: tag
|
type: tag
|
||||||
|
# Where should the widget be placed, left or right
|
||||||
position: right
|
position: right
|
||||||
# Other plugin settings
|
# Other plugin settings
|
||||||
plugins:
|
plugins:
|
||||||
|
|
|
@ -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
|
||||||
|
```
|
|
@ -44,6 +44,13 @@ Share plugins
|
||||||
- [Share.js](/hexo-theme-icarus/Plugins/Share/share-js-share-plugin/)
|
- [Share.js](/hexo-theme-icarus/Plugins/Share/share-js-share-plugin/)
|
||||||
- [ShareThis](/hexo-theme-icarus/Plugins/Share/sharethis-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
|
Other plugins
|
||||||
|
|
||||||
- [Hexo Tag Plugin](/hexo-theme-icarus/Configuration/Posts/hexo-built-in-tag-helpers/)
|
- [Hexo Tag Plugin](/hexo-theme-icarus/Configuration/Posts/hexo-built-in-tag-helpers/)
|
||||||
|
|
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
|
Loading…
Reference in New Issue