diff --git a/_config.theme.yml b/_config.theme.yml index 63471d9..da266fb 100644 --- a/_config.theme.yml +++ b/_config.theme.yml @@ -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: diff --git a/source/_posts/donation/Donation-Buttons.md b/source/_posts/donation/Donation-Buttons.md new file mode 100644 index 0000000..d3c24bb --- /dev/null +++ b/source/_posts/donation/Donation-Buttons.md @@ -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. + + + +### 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 +``` \ No newline at end of file diff --git a/source/about/index.md b/source/about/index.md index 30e809a..81ef392 100644 --- a/source/about/index.md +++ b/source/about/index.md @@ -6,7 +6,7 @@ toc: true
A simple, delicate, and modern theme for the static site generator Hexo.

-Preview | +Preview | Documentation | Download

@@ -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.
@@ -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.
diff --git a/source/gallery/donate/alipay.png b/source/gallery/donate/alipay.png new file mode 100644 index 0000000..a1d4320 Binary files /dev/null and b/source/gallery/donate/alipay.png differ diff --git a/source/gallery/donate/wechat.jpg b/source/gallery/donate/wechat.jpg new file mode 100644 index 0000000..f5f9793 Binary files /dev/null and b/source/gallery/donate/wechat.jpg differ diff --git a/themes/icarus b/themes/icarus index 90414e8..b913e64 160000 --- a/themes/icarus +++ b/themes/icarus @@ -1 +1 @@ -Subproject commit 90414e806275d8fbe714a13fda934a24ee47d949 +Subproject commit b913e648f381f123e54f1a4ba2bd70d66752c13e