chore: coffee banner

This commit is contained in:
Cory Dransfeldt 2024-10-20 10:15:51 -07:00
parent 4893256340
commit 58f3c2ac54
No known key found for this signature in database
5 changed files with 14 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "1.6.0", "version": "1.6.1",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"engines": { "engines": {

View file

@ -31,12 +31,16 @@
} }
} }
&.coffee,
&.error, &.error,
&.github, &.github,
&.npm, &.npm,
&.old-post, &.old-post,
&.rss, &.rss,
&.warning { &.warning {
&.coffee {
--banner-accent-color: var(--brand-buy-me-a-coffee);
}
&.error { &.error {
--banner-accent-color: var(--error); --banner-accent-color: var(--error);
} }

View file

@ -43,7 +43,7 @@
--brand-npm: #cc3534; --brand-npm: #cc3534;
--brand-mastodon: #6364ff; --brand-mastodon: #6364ff;
--brand-listenbrainz: #e97941; --brand-listenbrainz: #e97941;
--brand-buy-me-a-coffee: #40dca5; --brand-buy-me-a-coffee: #ff5f5f;
--brand-rss: #f26522; --brand-rss: #f26522;
--moon: #6a5acd; --moon: #6a5acd;

View file

@ -0,0 +1,7 @@
<div class="banner coffee">
<p>
<a class="coffee plausible-event-name=Buy+Me+a+Coffee+post+footer" href="https://buymeacoffee.com/cory">
{% tablericon "coffee" %} If you found this post helpful, you can buy me a coffee.
</a>
</p>
</div>

View file

@ -49,4 +49,5 @@ schema: blog
{% render "partials/blocks/associated-media.liquid", movie:post.movies %} {% render "partials/blocks/associated-media.liquid", movie:post.movies %}
{% render "partials/blocks/associated-media.liquid", shows:post.shows %} {% render "partials/blocks/associated-media.liquid", shows:post.shows %}
</div> </div>
{% render "partials/blocks/banners/coffee.liquid" %}
</article> </article>