diff --git a/.claude/skills/blowfish/SKILL.md b/.claude/skills/blowfish/SKILL.md index ed8e849a..56bd679a 100644 --- a/.claude/skills/blowfish/SKILL.md +++ b/.claude/skills/blowfish/SKILL.md @@ -41,7 +41,7 @@ After installing (any method): delete the site's generated `hugo.toml` in the pr All config lives in the site's `config/_default/` (reference: https://blowfish.page/docs/configuration/): - `hugo.toml` — core Hugo settings, theme/module import, taxonomies, related-content config. -- `params.toml` — theme behavior. Key areas: `colorScheme`; `defaultAppearance`/`autoSwitchAppearance` (dark mode); `defaultBackgroundImage` + `backgroundCanvas` (site-wide fixed backdrop); `[header] layout` (`basic`, `fixed`, `fixed-fill`, `fixed-gradient`, `fixed-fill-blur`, `floating`) and `mobileMenuStyle` (`fullscreen`/`dropdown`); `[homepage] layout` (`page`, `profile`, `hero`, `card`, `background`, `landing`, `custom`) + `layoutSwitcher`; `[article]`, `[list]`, `[taxonomy]`, `[term]` display flags (hero styles, TOC, reading time/progress, breadcrumbs, `cardView`, `featureImageHover`, …); `[footer]`; search; analytics; comments; Firebase (views/likes). +- `params.toml` — theme behavior. Key areas: `colorScheme`; `defaultAppearance`/`autoSwitchAppearance` (dark mode); `defaultBackgroundImage` + `backgroundCanvas` (site-wide fixed backdrop); `[header] layout` (`basic`, `fixed`, `fixed-fill`, `fixed-gradient`, `fixed-fill-blur`, `floating`) and `mobileMenuStyle` (`fullscreen`/`dropdown`); `[homepage] layout` (`page`, `profile`, `hero`, `card`, `background`, `landing`, `custom`) + `layoutSwitcher`; `[article]`, `[list]`, `[taxonomy]`, `[term]` display flags (hero styles, TOC, reading time/progress, breadcrumbs, `cardView`, `featureImageHover`, …); `[footer]`; search; analytics; comments; support (`[buymeacoffee]`, `[kofi]`); Firebase (views/likes). - `languages..toml` — site title, author profile (name, image, headline, bio, `links` social icons). One file per language for multilingual sites. - `menus..toml` — `[[main]]`, `[[subnavigation]]`, and `[[footer]]` entries (`name`, `pageRef`/`url`, `weight`, optional `pre` icon). - `markup.toml` — Goldmark config; keep `unsafe = true` (the theme relies on HTML in Markdown). diff --git a/exampleSite/content/docs/configuration/index.it.md b/exampleSite/content/docs/configuration/index.it.md index 59da8497..51db3cd9 100644 --- a/exampleSite/content/docs/configuration/index.it.md +++ b/exampleSite/content/docs/configuration/index.it.md @@ -366,7 +366,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | --- | --- | --- | | `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.globalWidgetText` | `"Sostienimi"` | The text displayed on the floating widget button. | | `kofi.globalWidgetBackgroundColor` | `#00B9FE` | Widget background color in hex format. | | `kofi.globalWidgetTextColor` | `#FFFFFF` | Widget text color in hex format. | diff --git a/exampleSite/content/docs/configuration/index.ja.md b/exampleSite/content/docs/configuration/index.ja.md index 143a9779..89d79de4 100644 --- a/exampleSite/content/docs/configuration/index.ja.md +++ b/exampleSite/content/docs/configuration/index.ja.md @@ -366,7 +366,7 @@ Blowfish は、テーマの機能を制御する多数の設定パラメータ | --- | --- | --- | | `kofi.identifier` | _未設定_ | ターゲットの Ko-fi アカウントの識別子。 | | `kofi.globalWidget` | _未設定_ | グローバル Ko-fi ウィジェットを有効にします。 | -| `kofi.globalWidgetText` | _未設定_ | 新しいユーザーが初めてサイトにアクセスしたときに表示されるテキスト。 | +| `kofi.globalWidgetText` | `"支援する"` | フローティングウィジェットのボタンに表示されるテキスト。 | | `kofi.globalWidgetBackgroundColor` | `#00B9FE` | ウィジェットの背景色(16進数形式)。 | | `kofi.globalWidgetTextColor` | `#FFFFFF` | ウィジェットの文字色(16進数形式)。 | diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index c3c724e4..d4837c4a 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -428,7 +428,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | --- | --- | --- | | `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.globalWidgetText` | `"Support me"` | The text displayed on the floating widget button. | | `kofi.globalWidgetBackgroundColor` | `#00B9FE` | Widget background color in hex format. | | `kofi.globalWidgetTextColor` | `#FFFFFF` | Widget text color in hex format. | diff --git a/exampleSite/content/docs/configuration/index.zh-cn.md b/exampleSite/content/docs/configuration/index.zh-cn.md index a37335dc..80f6e1bc 100644 --- a/exampleSite/content/docs/configuration/index.zh-cn.md +++ b/exampleSite/content/docs/configuration/index.zh-cn.md @@ -370,7 +370,7 @@ Blowfish 提供了大量控制主题功能的配置参数,下面的表格中 | --- | --- | --- | | `kofi.identifier` | 无 | kofi 账户的用户名。 | | `kofi.globalWidget` | 无 | 激活全局的 kofi 组件。 | -| `kofi.globalWidgetText` | 无 | 新用户首次访问网站时显示的消息。 | +| `kofi.globalWidgetText` | `"支持我"` | 悬浮组件按钮上显示的文本。 | | `kofi.globalWidgetBackgroundColor` | `#00B9FE` | 组件颜色,使用 HEX 格式。 | | `kofi.globalWidgetTextColor` | `#FFFFFF` | 组件文字颜色,使用 HEX 格式。 | diff --git a/i18n/ar.yaml b/i18n/ar.yaml index 2a5f3dc9..1e9e477b 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "سياسة الخصوصية الخاصة بنا" button: "فهمت" image_alt: "أيقونة ملف تعريف الارتباط" + +kofi: + support_me: "ادعمني" diff --git a/i18n/bg.yaml b/i18n/bg.yaml index cf1daed4..6b9d3486 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "политика за поверителност" button: "Разбрах" image_alt: "Икона на бисквитка" + +kofi: + support_me: "Подкрепете ме" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index b3b9e4e5..018804d1 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -82,3 +82,6 @@ cookie_notice: privacy_policy: "গোপনীয়তা নীতি" button: "বুঝেছি" image_alt: "কুকির আইকন" + +kofi: + support_me: "আমাকে সমর্থন করুন" diff --git a/i18n/ca.yaml b/i18n/ca.yaml index 6fb967a5..79861af0 100644 --- a/i18n/ca.yaml +++ b/i18n/ca.yaml @@ -93,3 +93,6 @@ cookie_notice: privacy_policy: "política de privacitat" button: "Entès" image_alt: "Icona de galeta" + +kofi: + support_me: "Dóna'm suport" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index 575f1634..5e52f368 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "zásady ochrany osobních údajů" button: "Rozumím" image_alt: "Ikona cookie" + +kofi: + support_me: "Podpořte mě" diff --git a/i18n/da.yaml b/i18n/da.yaml index 92921d87..b8cbbd44 100644 --- a/i18n/da.yaml +++ b/i18n/da.yaml @@ -93,3 +93,6 @@ cookie_notice: privacy_policy: "privatlivspolitik" button: "Forstået" image_alt: "Cookie-ikon" + +kofi: + support_me: "Støt mig" diff --git a/i18n/de.yaml b/i18n/de.yaml index 76c5ecaf..2db00e49 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -110,3 +110,6 @@ cookie_notice: privacy_policy: "Datenschutzerklärung" button: "Verstanden" image_alt: "Cookie-Symbol" + +kofi: + support_me: "Unterstütze mich" diff --git a/i18n/en.yaml b/i18n/en.yaml index d3e44887..9a1b36d5 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -109,3 +109,6 @@ admonition: tip: "Tip" todo: "Todo" warning: "Warning" + +kofi: + support_me: "Support me" diff --git a/i18n/eo.yaml b/i18n/eo.yaml index eb273ad3..06b6bad2 100644 --- a/i18n/eo.yaml +++ b/i18n/eo.yaml @@ -90,3 +90,6 @@ cookie_notice: privacy_policy: "privatecan politikon" button: "Komprenite" image_alt: "Kuketa simbolo" + +kofi: + support_me: "Subtenu min" diff --git a/i18n/es.yaml b/i18n/es.yaml index 4531dec2..79bbe649 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -85,3 +85,6 @@ cookie_notice: privacy_policy: "política de privacidad" button: "Entendido" image_alt: "Icono de cookie" + +kofi: + support_me: "Apóyame" diff --git a/i18n/eu.yaml b/i18n/eu.yaml index 92592cf9..a765a60d 100644 --- a/i18n/eu.yaml +++ b/i18n/eu.yaml @@ -78,3 +78,6 @@ shortcode: recent: show_more: "Erakutsi gehiago" + +kofi: + support_me: "Lagundu nazazu" diff --git a/i18n/fa.yaml b/i18n/fa.yaml index 5e3ae15f..34271a8c 100644 --- a/i18n/fa.yaml +++ b/i18n/fa.yaml @@ -92,3 +92,6 @@ cookie_notice: privacy_policy: "سیاست حفظ حریم خصوصی ما" button: "متوجه شدم" image_alt: "نماد کوکی" + +kofi: + support_me: "از من حمایت کنید" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index 332df2b9..63e20afa 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -80,3 +80,6 @@ cookie_notice: privacy_policy: "tietosuojaselosteemme" button: "Ymmärretty" image_alt: "Evästeen kuvake" + +kofi: + support_me: "Tue minua" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 013dfd70..952d1d94 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -83,3 +83,6 @@ cookie_notice: privacy_policy: "politique de confidentialité" button: "Compris" image_alt: "Icône de cookie" + +kofi: + support_me: "Soutenez-moi" diff --git a/i18n/gl.yaml b/i18n/gl.yaml index 9ff52e0c..b0e83deb 100644 --- a/i18n/gl.yaml +++ b/i18n/gl.yaml @@ -92,3 +92,6 @@ cookie_notice: privacy_policy: "política de privacidade" button: "Entendido" image_alt: "Icona de cookie" + +kofi: + support_me: "Apóiame" diff --git a/i18n/he.yaml b/i18n/he.yaml index 25a3b021..4c994591 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -80,3 +80,6 @@ cookie_notice: privacy_policy: "מדיניות הפרטיות שלנו" button: "הבנתי" image_alt: "סמל קובץ Cookie" + +kofi: + support_me: "תמכו בי" diff --git a/i18n/hr.yaml b/i18n/hr.yaml index 3dce2392..2ccf019c 100644 --- a/i18n/hr.yaml +++ b/i18n/hr.yaml @@ -82,3 +82,6 @@ cookie_notice: privacy_policy: "pravila privatnosti" button: "Razumijem" image_alt: "Ikona kolačića" + +kofi: + support_me: "Podržite me" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index 64dc174b..cb9c3714 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -80,3 +80,6 @@ cookie_notice: privacy_policy: "adatvédelmi tájékoztatónkat" button: "Rendben" image_alt: "Süti ikon" + +kofi: + support_me: "Támogass engem" diff --git a/i18n/id.yaml b/i18n/id.yaml index 7368bafd..98841f6f 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "kebijakan privasi kami" button: "Mengerti" image_alt: "Ikon cookie" + +kofi: + support_me: "Dukung saya" diff --git a/i18n/it.yaml b/i18n/it.yaml index 6a1c670b..b5ffaa8e 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -97,3 +97,6 @@ cookie_notice: privacy_policy: "informativa sulla privacy" button: "Ho capito" image_alt: "Icona cookie" + +kofi: + support_me: "Sostienimi" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 635947f2..096f13c8 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -109,3 +109,6 @@ cookie_notice: privacy_policy: "プライバシーポリシー" button: "了解しました" image_alt: "Cookie アイコン" + +kofi: + support_me: "支援する" diff --git a/i18n/ko.yaml b/i18n/ko.yaml index 0b841421..bc605abf 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "개인정보 처리방침" button: "확인했습니다" image_alt: "쿠키 아이콘" + +kofi: + support_me: "후원하기" diff --git a/i18n/nb.yaml b/i18n/nb.yaml index 8f7fec34..e52f7127 100644 --- a/i18n/nb.yaml +++ b/i18n/nb.yaml @@ -102,3 +102,6 @@ admonition: tip: "Tips" todo: "Gjøremål" warning: "Advarsel" + +kofi: + support_me: "Støtt meg" diff --git a/i18n/nl.yaml b/i18n/nl.yaml index 8efdb5ef..c2cdee0f 100644 --- a/i18n/nl.yaml +++ b/i18n/nl.yaml @@ -88,3 +88,6 @@ cookie_notice: privacy_policy: "privacybeleid" button: "Begrepen" image_alt: "Cookie-pictogram" + +kofi: + support_me: "Steun mij" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 057a6235..84d505c2 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -87,3 +87,6 @@ cookie_notice: privacy_policy: "politykę prywatności" button: "Rozumiem" image_alt: "Ikona pliku cookie" + +kofi: + support_me: "Wesprzyj mnie" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index b9464fd0..c4f01c9b 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -83,3 +83,6 @@ cookie_notice: privacy_policy: "política de privacidade" button: "Entendi" image_alt: "Ícone de cookie" + +kofi: + support_me: "Me apoie" diff --git a/i18n/pt-PT.yaml b/i18n/pt-PT.yaml index 7bcdee7e..83acc151 100644 --- a/i18n/pt-PT.yaml +++ b/i18n/pt-PT.yaml @@ -83,3 +83,6 @@ cookie_notice: privacy_policy: "política de privacidade" button: "Compreendi" image_alt: "Ícone de cookie" + +kofi: + support_me: "Apoie-me" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 01e1c792..23a6ce19 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -80,3 +80,6 @@ cookie_notice: privacy_policy: "politica noastră de confidențialitate" button: "Am înțeles" image_alt: "Pictogramă cookie" + +kofi: + support_me: "Susține-mă" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 2e8ab233..3f0485b5 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -86,3 +86,6 @@ cookie_notice: privacy_policy: "политикой конфиденциальности" button: "Понятно" image_alt: "Значок cookie" + +kofi: + support_me: "Поддержите меня" diff --git a/i18n/sv.yaml b/i18n/sv.yaml index f5a48d37..7104b533 100644 --- a/i18n/sv.yaml +++ b/i18n/sv.yaml @@ -80,3 +80,6 @@ cookie_notice: privacy_policy: "integritetspolicy" button: "Förstått" image_alt: "Cookie-ikon" + +kofi: + support_me: "Stöd mig" diff --git a/i18n/th.yaml b/i18n/th.yaml index cd0f74a5..0bf16068 100644 --- a/i18n/th.yaml +++ b/i18n/th.yaml @@ -91,3 +91,6 @@ cookie_notice: privacy_policy: "นโยบายความเป็นส่วนตัวของเรา" button: "เข้าใจแล้ว" image_alt: "ไอคอนคุกกี้" + +kofi: + support_me: "สนับสนุน" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index a631d994..23665908 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -76,3 +76,6 @@ cookie_notice: privacy_policy: "Gizlilik Politikamız" button: "Anladım" image_alt: "Çerez simgesi" + +kofi: + support_me: "Beni destekle" diff --git a/i18n/uk.yaml b/i18n/uk.yaml index c13e1118..c11fa88f 100644 --- a/i18n/uk.yaml +++ b/i18n/uk.yaml @@ -93,3 +93,6 @@ cookie_notice: privacy_policy: "політикою конфіденційності" button: "Зрозуміло" image_alt: "Значок cookie" + +kofi: + support_me: "Підтримайте мене" diff --git a/i18n/vi.yaml b/i18n/vi.yaml index c382d239..67961805 100644 --- a/i18n/vi.yaml +++ b/i18n/vi.yaml @@ -89,3 +89,6 @@ cookie_notice: privacy_policy: "chính sách quyền riêng tư của chúng tôi" button: "Đã hiểu" image_alt: "Biểu tượng cookie" + +kofi: + support_me: "Ủng hộ tôi" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index c768597c..0b7e12f4 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -109,3 +109,6 @@ cookie_notice: privacy_policy: "隐私政策" button: "明白了" image_alt: "Cookie 图标" + +kofi: + support_me: "支持我" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index 010433af..32483f1b 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -109,3 +109,6 @@ cookie_notice: privacy_policy: "隱私權政策" button: "了解了" image_alt: "Cookie 圖示" + +kofi: + support_me: "支持我" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 93d15f0e..cb7f17e9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -74,12 +74,12 @@ data-x_margin="18" data-y_margin="18"> {{ end }} - {{ if site.Params.kofi.globalWidget | default false }} + {{ if and (site.Params.kofi.globalWidget | default false) site.Params.kofi.identifier }}