Skip to content

Commit

Permalink
feat(funding): add support for Buy Me a Coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 16, 2023
1 parent 4f057b3 commit decf0fe
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions exampleSite/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ minMatchCharLength = 3
[funding]
alipay = "https://razonyang.com/images/reward/alipay.webp"
wechat = "https://razonyang.com/images/reward/wechat.webp"
buymeacoffee = "razonyang"
ko_fi = "razonyang"
patreon = "razonyang"
open_collective = "hbs"
Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/widgets/funding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The `funding` is a key value pair that mapping from platform to their QR Code im
| `funding.ko_fi` | String | - | Ko-fi username.
| `funding.patreon` | String | - | Patreon username.
| `funding.open_collective` | String | - | Open Collective username.
| `funding.buymeacoffee` | String | - | Buy Me a Coffee username.

## Page Parameter

Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/widgets/funding/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ authors = ["RazonYang"]
| `funding.ko_fi` | String | - | Ko-fi 用户名。
| `funding.patreon` | String | - | Patreon 用户名。
| `funding.open_collective` | String | - | Open Collective 用户名。
| `funding.buymeacoffee` | String | - | Buy Me a Coffee 用户名。

## 页面配置

Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/widgets/funding/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ authors = ["RazonYang"]
| `funding.ko_fi` | String | - | Ko-fi 用戶名。
| `funding.patreon` | String | - | Patreon 用戶名。
| `funding.open_collective` | String | - | Open Collective 用戶名。
| `funding.buymeacoffee` | String | - | Buy Me a Coffee 用戶名。

## 頁面配置

Expand Down
3 changes: 3 additions & 0 deletions i18n/ar.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "صغير جدا"
[funding_alipay]
other = "علي باي"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "Extra klein"
[funding_alipay]
other = "Alipay"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "Extra Small"
[funding_alipay]
other = "Alipay"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/pl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "Bardzo mały"
[funding_alipay]
other = "Alipay"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "特小号"
[funding_alipay]
other = "支付宝"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hans.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "特小号"
[funding_alipay]
other = "支付宝"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hant.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "特小號"
[funding_alipay]
other = "支付寶"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-hk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "特小號"
[funding_alipay]
other = "支付寶"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-tw.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ other = "特小號"
[funding_alipay]
other = "支付寶"

[funding_buymeacoffee]
other = "Buy Me a Coffee"

[funding_ko_fi]
other = "Ko-fi"

Expand Down
3 changes: 2 additions & 1 deletion layouts/partials/post/panel/funding.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"paypal" "paypal"
"patreon" "patreon"
}}
{{- $urls := dict
{{- $urls := dict
"buymeacoffee" "https://www.buymeacoffee.com/%s"
"ko_fi" "https://ko-fi.com/%s"
"patreon" "https://www.patreon.com/%s"
"paypal" "https://paypal.me/%s"
Expand Down

0 comments on commit decf0fe

Please sign in to comment.