From b0f13f16018241446d110f4bf226d238ce015edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Barcel=C3=B3=20Soteras?= Date: Thu, 13 Oct 2022 20:53:42 +0200 Subject: [PATCH] Added ko-fi icon support --- assets/icons/ko-fi.svg | 63 ++++++++++++++++++++++ config/_default/languages.en.toml | 1 + exampleSite/content/samples/icons/index.md | 3 +- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 assets/icons/ko-fi.svg diff --git a/assets/icons/ko-fi.svg b/assets/icons/ko-fi.svg new file mode 100644 index 00000000..96262dec --- /dev/null +++ b/assets/icons/ko-fi.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index de809573..9e815f30 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -59,4 +59,5 @@ dateFormat = "2 January 2006" # { twitter = "https://twitter.com/username" }, # { whatsapp = "https://wa.me/phone-number" }, # { youtube = "https://youtube.com/username" }, + # { ko-fi = "https://ko-fi.com/username" }, # ] diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 8a57c723..5d3354de 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -10,7 +10,7 @@ tags: ["icons", "sample", "shortcodes"] Blowfish has built-in support for a number of [FontAwesome 6](https://fontawesome.com/icons) icons. These can be included in your website through either the [icon partial]({{< ref "docs/partials#icon" >}}) or [icon shortcode]({{< ref "docs/shortcodes#icon" >}}). -Additionally, custom icons are also fully supported. Simply provide your own SVG icon assets by placing them in the `assets/icons/` directory in the root of your project. Any icons in the icons directory will then be available to use throughout the theme. +Additionally, custom icons are also fully supported. Simply provide your own SVG icon assets by placing them in the `assets/icons/` directory in the root of your project. Any icons in the icons directory will then be available to use throughout the theme. In order achieve automatic color filling every SVG path needs fill="currentColor" XML attribute. The full list of built-in icons and their corresponding names can referenced below. @@ -96,3 +96,4 @@ The full list of built-in icons and their corresponding names can referenced bel | whatsapp | {{< icon whatsapp >}} | | xmark | {{< icon xmark >}} | | youtube | {{< icon youtube >}} | +| ko-fi | {{< icon ko-fi >}} |