Merge pull request #3118 from nourkagha/kofi-integration

✨ Add Ko-fi integration
This commit is contained in:
Nuno C. authored and GitHub committed 2026-10-07 15:57:28 +01:00
commit 9b173140ce
20 files changed
+94 -22

No files matched your search

+7
View File
@@ -169,6 +169,13 @@ fingerprintAlgorithm = "sha512" # Valid values are "sha512" (default), "sha384",
globalWidgetColor = "#FFDD00"
globalWidgetPosition = "right"
[kofi]
# identifier = ""
# globalWidget = true
# globalWidgetText = "Support me"
# globalWidgetBackgroundColor = "#00B9FE"
# globalWidgetTextColor = "#FFFFFF"
[verification]
# google = ""
# bing = ""
@@ -350,16 +350,26 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `selineAnalytics.token` | _Not set_ | The token generated by Seline Analytics for the website. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details. |
| `selineAnalytics.enableTrackEvent` | true | When set to `true` track event will add automatically. If you do not want to add track event, set it to `false`. |
### BuyMeACoffee
### Buy Me a Coffee
| Name | Default | Description |
| --- | --- | --- |
| `buymeacoffee.identifier` | _Not set_ | The identifier to the target buymeacoffee account. |
| `buymeacoffee.globalWidget` | _Not set_ | Activate the global buymeacoffee widget. |
| `buymeacoffee.globalWidgetMessage` | _Not set_ | Message what will be displayed the first time a new user lands on the site. |
| `buymeacoffee.globalWidgetMessage` | _Not set_ | Message that will be displayed the first time a new user lands on the site. |
| `buymeacoffee.globalWidgetColor` | `#FFDD00` | Widget color in hex format. |
| `buymeacoffee.globalWidgetPosition` | _Not set_ | Position of the widget, i.e. "left" or "right" |
### Ko-fi
| Name | Default | Description |
| --- | --- | --- |
| `kofi.identifier` | _Not set_ | The identifier to the target kofi account. |
| `kofi.globalWidget` | _Not set_ | Activate the global kofi widget. |
| `kofi.globalWidgetText` | _Not set_ | Message that will be displayed the first time a new user lands on the site. |
| `kofi.globalWidgetBackgroundColor` | `#00B9FE` | Widget background color in hex format. |
| `kofi.globalWidgetTextColor` | `#FFFFFF` | Widget text color in hex format. |
### Verifications
| Name | Default | Description |
@@ -350,7 +350,7 @@ Blowfish は、テーマの機能を制御する多数の設定パラメータ
| `selineAnalytics.token` | _未設定_ | ウェブサイト用に Seline Analytics によって生成されたトークン。詳細については、[Analytics のドキュメント]({{< ref "partials#アナリティクス" >}})を参照してください。 |
| `selineAnalytics.enableTrackEvent` | `true` | `true` に設定すると、トラックイベントが自動的に追加されます。トラックイベントを追加したくない場合は、`false` に設定してください。 |
### BuyMeACoffee
### Buy Me a Coffee
| 名前 | デフォルト | 説明 |
| --- | --- | --- |
@@ -360,6 +360,16 @@ Blowfish は、テーマの機能を制御する多数の設定パラメータ
| `buymeacoffee.globalWidgetColor` | `#FFDD00` | ウィジェットの色(16進数形式)。 |
| `buymeacoffee.globalWidgetPosition` | _未設定_ | ウィジェットの位置。例えば "left" または "right" |
### Ko-fi
| Name | Default | Description |
| --- | --- | --- |
| `kofi.identifier` | _未設定_ | ターゲットの Ko-fi アカウントの識別子。 |
| `kofi.globalWidget` | _未設定_ | グローバル Ko-fi ウィジェットを有効にします。 |
| `kofi.globalWidgetText` | _未設定_ | 新しいユーザーが初めてサイトにアクセスしたときに表示されるテキスト。 |
| `kofi.globalWidgetBackgroundColor` | `#00B9FE` | ウィジェットの背景色(16進数形式)。 |
| `kofi.globalWidgetTextColor` | `#FFFFFF` | ウィジェットの文字色(16進数形式)。 |
### verification
| 名前 | デフォルト | 説明 |
@@ -412,16 +412,26 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `selineAnalytics.token` | _Not set_ | The token generated by Seline Analytics for the website. Refer to the [Analytics docs]({{< ref "partials#analytics" >}}) for more details. |
| `selineAnalytics.enableTrackEvent` | true | When set to `true` track event will add automatically. If you do not want to add track event, set it to `false`. |
### BuyMeACoffee
### Buy Me a Coffee
| Name | Default | Description |
| --- | --- | --- |
| `buymeacoffee.identifier` | _Not set_ | The identifier to the target buymeacoffee account. |
| `buymeacoffee.globalWidget` | _Not set_ | Activate the global buymeacoffee widget. |
| `buymeacoffee.globalWidgetMessage` | _Not set_ | Message what will be displayed the first time a new user lands on the site. |
| `buymeacoffee.globalWidgetMessage` | _Not set_ | Message that will be displayed the first time a new user lands on the site. |
| `buymeacoffee.globalWidgetColor` | `#FFDD00` | Widget color in hex format. |
| `buymeacoffee.globalWidgetPosition` | _Not set_ | Position of the widget, i.e. "left" or "right" |
### Ko-fi
| Name | Default | Description |
| --- | --- | --- |
| `kofi.identifier` | _Not set_ | The identifier to the target kofi account. |
| `kofi.globalWidget` | _Not set_ | Activate the global kofi widget. |
| `kofi.globalWidgetText` | _Not set_ | Message that will be displayed the first time a new user lands on the site. |
| `kofi.globalWidgetBackgroundColor` | `#00B9FE` | Widget background color in hex format. |
| `kofi.globalWidgetTextColor` | `#FFFFFF` | Widget text color in hex format. |
### Verifications
| Name | Default | Description |
@@ -354,7 +354,7 @@ Blowfish 提供了大量控制主题功能的配置参数,下面的表格中
| `selineAnalytics.token` | 无 | Seline 站点分析平台的 token。更多详细内容请参考 [分析文档]({{< ref "partials#analytics" >}})。 |
| `selineAnalytics.enableTrackEvent` | true | 默认会自动添加 Umami Track Event。如果你不想添加 Event,那学需要设置为 `false`。 |
### BuyMeACoffee(赞助平台)
### Buy Me a Coffee(赞助平台)
| 名称 | 默认值 | 描述 |
| ----------------------------------- | --------- | ---------------------------------- |
@@ -364,6 +364,16 @@ Blowfish 提供了大量控制主题功能的配置参数,下面的表格中
| `buymeacoffee.globalWidgetColor` | `#FFDD00` | 组件颜色,使用 HEX 格式。 |
| `buymeacoffee.globalWidgetPosition` | 无 | 组件位置,例如 "left" 或 "right"。 |
### Ko-fi(赞助平台)
| 名称 | 默认值 | 描述 |
| --- | --- | --- |
| `kofi.identifier` | 无 | kofi 账户的用户名。 |
| `kofi.globalWidget` | 无 | 激活全局的 kofi 组件。 |
| `kofi.globalWidgetText` | 无 | 新用户首次访问网站时显示的消息。 |
| `kofi.globalWidgetBackgroundColor` | `#00B9FE` | 组件颜色,使用 HEX 格式。 |
| `kofi.globalWidgetTextColor` | `#FFFFFF` | 组件文字颜色,使用 HEX 格式。 |
### 验证
| 名称 | 默认值 | 描述 |