Hugo shortcodes for supporter pages: Patreon and Buy Me A Coffee
Copy the files to your into you Hugo project. (to the path where they are located in this repo: layouts/shortcodes/
)
In your Markdown post you can do:
{{< patreon user="37212546" color="#2ecc71" title="Become a Patron" >}}
-
user
: When you create a Patreon button here, you get a URL inside the widget:https://www.patreon.com/bePatron?u=37212546
. The ID (numbers) after theu=
parameter is the user . -
color
: The color of the Patreon button (background). -
title
: The text on the button.
{{< buymeacoffee user="tweakedtech" color="#2ecc71" title="Buy me a coffee" >}}
-
user
: On the Dashboard you can see your own personal URL, something like this:https://www.buymeacoffee.com/tweakedtech
.tweakedtech
is the user in this case -
color
: The color of the Patreon button (background). -
title
: The text on the button.
https://danieldallos.com/posts/2020/07/how-i-built-6-1-apps-in-one-day/