Skip to content

Commit

Permalink
feat: Discrete buy me a coffee button
Browse files Browse the repository at this point in the history
  • Loading branch information
iwishiwasaneagle committed Dec 22, 2023
1 parent a46be0c commit c34a30d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ plausible_url: https://divine-wood-7bde.dev-jh-ewers4177.workers.dev
plausible_script: 18dcc14a8dd9f785.js
plausible_event: bd7483245a4d6b07

bmac_url: https://www.buymeacoffee.com/janhendrikewers.uk

algolia:
application_id: "2PA5ICUOKI"
index_name: "personal_website"
Expand Down
2 changes: 2 additions & 0 deletions _includes/socials/buy-me-a-coffee.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<a class="plausible-event-name=Buy+Me+A+Coffee+Click" href="{{ site.bmac_url }}">
<span class="badge rounded-pill">☕️ buy me a coffee</span></a>
1 change: 1 addition & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ <h1 class="fs-3 fw-bold">{{ page.title }}</h1>
{% if page.tags.size > 0 %} &nbsp;&nbsp; {% for tag in page.tags %}
<span class="badge rounded-pill">{{ tag }}</span>
{% endfor %} {% endif %}
{% include socials/buy-me-a-coffee.html %}
</p>
{% include socials/share-buttons.html %}
</div>
Expand Down

0 comments on commit c34a30d

Please sign in to comment.