Skip to content

Commit

Permalink
feat(shortcode): rename to follow the naming pattern of other shortcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gągor committed Mar 8, 2024
1 parent 622107e commit 7dec1a4
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# hugo-kofi-shortcodes
# hugo-shortcode-kofi

This is a set of shortcodes to allow easy integration with [Ko-fi](https://ko-fi.com/).

[Live demo on my blog](https://gagor.pro//2024/03/kofi-shortcodes-for-hugo/).

# 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
Expand All @@ -23,15 +23,15 @@ 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:

```yaml
theme:
- YourThemeOfChoice
- hugo-kofi-shortcodes
- hugo-shortcode-kofi
```

Original theme should be first, followed up by extension.
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/kofi_image.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<a href='https://ko-fi.com/{{ .user }}' target='_blank'>
<img height='{{ .height }}' {{ if .width }}width='{{ .width }}' {{ end }} style='border:0px;height:{{ .height }}px;{{ if .width }}width:{{ .width }}px; {{ end }}'
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/badge.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/button.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Button -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/custom.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/donation-panel.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Donation Panel Widget -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/floating-button.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Floating Button Widget -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/image1.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/image2.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<!--
Parameters:
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/kofi/logo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-kofi-shortcodes -->
<!-- Author: Tomasz Gągor https://github.com/tgagor/hugo-shortcode-kofi -->
<!-- Ko-fi Image -->
<!--
Parameters:
Expand Down

0 comments on commit 7dec1a4

Please sign in to comment.