Skip to content

Commit 2d5a179

Browse files
committed
Added kofi buttons
1 parent c548921 commit 2d5a179

File tree

6 files changed

+39
-4
lines changed

6 files changed

+39
-4
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default defineConfig({
5050
"fa6-brands": ["*"],
5151
"fa6-regular": ["*"],
5252
"fa6-solid": ["*"],
53+
"simple-icons": ["*"],
5354
},
5455
}),
5556
svelte(),

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@iconify-json/fa6-regular": "^1.2.2",
2727
"@iconify-json/fa6-solid": "^1.2.2",
2828
"@iconify-json/material-symbols": "^1.2.8",
29+
"@iconify-json/simple-icons": "^1.2.34",
2930
"@iconify/svelte": "^4.0.2",
3031
"@swup/astro": "^1.5.0",
3132
"@tailwindcss/typography": "^0.5.15",
@@ -51,6 +52,7 @@
5152
"remark-sectionize": "^2.0.0",
5253
"sanitize-html": "^2.13.1",
5354
"sharp": "^0.33.5",
55+
"simple-icons": "^14.13.0",
5456
"stylus": "^0.63.0",
5557
"svelte": "^5.5.3",
5658
"tailwindcss": "^3.4.16",

pnpm-lock.yaml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
10.5 KB
Loading

src/config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,19 @@ export const profileConfig: ProfileConfig = {
6868
// icon: 'fa6-brands:steam',
6969
// url: 'https://store.steampowered.com',
7070
// },
71+
// {
72+
// name: 'itch.io',
73+
// icon: 'fa6-brands:itch-io',
74+
// url: 'https://belfardev.itch.io/',
75+
// },
7176
{
72-
name: 'itch.io',
73-
icon: 'fa6-brands:itch-io',
74-
url: 'https://belfardev.itch.io/',
77+
name: 'Ko-fi',
78+
icon: 'simple-icons:kofi',
79+
url: 'https://ko-fi.com/belfardev',
7580
},
7681
{
7782
name: 'GitHub',
78-
icon: 'fa6-brands:github',
83+
icon: 'simple-icons:github',
7984
url: 'https://github.com/belfargamedev',
8085
},
8186
],

src/pages/posts/[...slug].astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import { Image } from 'astro:assets';
3+
import kofiButton from './src/assets/images/support_me_on_kofi.png'
24
import path from 'node:path'
35
import { getCollection } from 'astro:content'
46
import License from '@components/misc/License.astro'
@@ -106,6 +108,11 @@ const jsonLd = {
106108

107109
{licenseConfig.enable && <License title={entry.data.title} slug={entry.slug} pubDate={entry.data.published} class="mb-6 rounded-xl license-container onload-animation"></License>}
108110

111+
<center>
112+
<a href="https://ko-fi.com/belfardev" target="_blank">
113+
<Image src={kofiButton} width="300px" alt="Support me on Ko-fi!" />
114+
</a>
115+
</center>
109116
</div>
110117
</div>
111118

@@ -131,4 +138,5 @@ const jsonLd = {
131138
</a>
132139
</div>
133140

141+
134142
</MainGridLayout>

0 commit comments

Comments
 (0)