From 7dec1a4b14f3af7a63b58d063efa33295fe5be31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20G=C4=85gor?= Date: Fri, 8 Mar 2024 20:01:40 +0100 Subject: [PATCH] feat(shortcode): rename to follow the naming pattern of other shortcodes --- .github/workflows/test-and-release.yml | 4 ++-- README.md | 10 +++++----- exampleSite/hugo.yaml | 2 +- layouts/partials/kofi_image.html | 2 +- layouts/shortcodes/kofi/badge.html | 2 +- layouts/shortcodes/kofi/button.html | 2 +- layouts/shortcodes/kofi/custom.html | 2 +- layouts/shortcodes/kofi/donation-panel.html | 2 +- layouts/shortcodes/kofi/floating-button.html | 2 +- layouts/shortcodes/kofi/image1.html | 2 +- layouts/shortcodes/kofi/image2.html | 2 +- layouts/shortcodes/kofi/logo.html | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 34a5595..561edc8 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -29,8 +29,8 @@ jobs: # install PaperMod theme git clone --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod - # install hugo-kofi-shortcodes - ln -s ../ themes/hugo-kofi-shortcodes + # install hugo-shortcode-kofi + ln -s ../ themes/hugo-shortcode-kofi ls -la themes/ hugo config diff --git a/README.md b/README.md index a6e8f6e..a85e368 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# hugo-kofi-shortcodes +# hugo-shortcode-kofi This is a set of shortcodes to allow easy integration with [Ko-fi](https://ko-fi.com/). @@ -6,13 +6,13 @@ This is a set of shortcodes to allow easy integration with [Ko-fi](https://ko-fi # Installation -1. Clone hugo-kofi-shortcodes repo to your project: +1. Clone hugo-shortcode-kofi repo to your project: - as submodule (recommended) ```bash cd your-site-location - git submodule add --depth=1 https://github.com/tgagor/hugo-kofi-shortcodes.git themes/hugo-kofi-shortcodes + git submodule add --depth=1 https://github.com/tgagor/hugo-shortcode-kofi.git themes/hugo-shortcode-kofi # initialize any uninitialized submodules in the repository # and then recursively update all submodules @@ -23,7 +23,7 @@ This is a set of shortcodes to allow easy integration with [Ko-fi](https://ko-fi ```bash cd your-site-location - git clone --depth=1 https://github.com/tgagor/hugo-kofi-shortcodes.git themes/hugo-kofi-shortcodes + git clone --depth=1 https://github.com/tgagor/hugo-shortcode-kofi.git themes/hugo-shortcode-kofi ``` 3. Update blog config: @@ -31,7 +31,7 @@ This is a set of shortcodes to allow easy integration with [Ko-fi](https://ko-fi ```yaml theme: - YourThemeOfChoice - - hugo-kofi-shortcodes + - hugo-shortcode-kofi ``` Original theme should be first, followed up by extension. diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 7f6e1df..d60db7d 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -4,7 +4,7 @@ title: My New Hugo Site with Ko-fi me shortcodes theme: - PaperMod # your preferred theme - - hugo-kofi-shortcodes + - hugo-shortcode-kofi params: # ko-fi config diff --git a/layouts/partials/kofi_image.html b/layouts/partials/kofi_image.html index 74e78b1..2a1321b 100644 --- a/layouts/partials/kofi_image.html +++ b/layouts/partials/kofi_image.html @@ -1,4 +1,4 @@ - + + + + + + + + +