Giter Club home page Giter Club logo

tgagor / hugo-shortcode-kofi Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 29 KB

A collection of custom shortcodes tailored for Hugo static site generator, designed to seamlessly integrate Ko-fi buttons and widgets into any blog post

Home Page: https://gagor.pro/2024/03/monetize-your-blog-with-ko-fi-shortcodes-for-hugo-sites/

License: GNU General Public License v3.0

HTML 100.00%
hugo hugo-shortcode hugo-shortcodes hugo-theme hugo-theme-component hugo-themes

hugo-shortcode-kofi's Introduction

Hugo shortcodes for Ko-fi

build GitHub GitHub Release Date

This is a set of shortcodes to allow easy integration with Ko-fi.

Live demo on my blog.

Installation

  1. Clone hugo-shortcode-kofi repo to your project:
  • as submodule (recommended)

    cd your-site-location
    
    git submodule add --depth=1 https://github.com/tgagor/hugo-shortcode-kofi.git themes/hugo-shortcode-kofi

    You might need to initialize any uninitialized submodules in the repository and then recursively update all submodules to their latest versions to make it fully available:

    git submodule update --init --recursive
  • or by just cloning

    cd your-site-location
    
    git clone --depth=1 https://github.com/tgagor/hugo-shortcode-kofi.git themes/hugo-shortcode-kofi
  1. Update blog config:
theme:
  - YourThemeOfChoice
  - hugo-shortcode-kofi

Original theme should be first, followed up by extension.

If you're unable to get it working, check exampleSite directory.

List of shortcodes

Animated button
{{< kofi/button >}} or
{{< kofi/button color="#13C3FF" >}}
{{< kofi/button color="#FF5E5B" >}}
{{< kofi/button color="#434b57" >}}
Image style 1
{{< kofi/image1 >}} or
{{< kofi/image1 style="blue" >}}
{{< kofi/image1 style="grey" >}}
{{< kofi/image1 style="red" >}}
{{< kofi/image1 style="green" >}}
{{< kofi/image1 style="dark" >}}
Image style 2
{{< kofi/image2 >}} or
{{< kofi/image2 style="blue" >}}
{{< kofi/image2 style="red" >}}
{{< kofi/image2 style="stroke" >}}
{{< kofi/image2 style="dark" >}}

Logotypes

Logos
{{< kofi/logo >}} or
{{< kofi/logo style="logo" >}}
{{< kofi/logo style="mug" >}}
{{< kofi/logo style="pixel" >}}

Badges

Badges
{{< kofi/badge >}} or
{{< kofi/badge style=white >}}
{{< kofi/badge style=dark >}}
{{< kofi/badge style=bg-white >}}
{{< kofi/badge style=bg-dark >}}

Dynamic widgets

Widgets
{{< kofi/floating-button >}}
{{< kofi/donation-panel >}}

Custom images

Custom images
{{< kofi/custom height=200 url="https://media.giphy.com/media/kgKFcQk6oa1WIdHNSl/giphy.gif" >}}

hugo-shortcode-kofi's People

Contributors

tgagor avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.