Skip to content

Commit 8491db0

Browse files
committed
fix satori template width, height, add computer-science category and algorithms tag
1 parent 274a949 commit 8491db0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/constants/collections.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const TAGS = [
2424
'devops',
2525
'docker',
2626
'self-hosting',
27+
'algorithms',
2728
] as const;
2829

2930
/** adjust this later */
@@ -34,6 +35,14 @@ export const CATEGORIES = [
3435
name: 'tutorials',
3536
icon: 'mdi:teach',
3637
},
38+
{
39+
name: 'computer-science',
40+
icon: 'mdi:chip',
41+
},
42+
{
43+
name: 'homelab',
44+
icon: 'mdi:flask-empty-outline',
45+
},
3746
{
3847
name: 'tips-and-tricks',
3948
icon: 'mdi:lightbulb-outline',
@@ -58,10 +67,6 @@ export const CATEGORIES = [
5867
name: 'resources',
5968
icon: 'mdi:book-open-variant-outline',
6069
},
61-
{
62-
name: 'homelab',
63-
icon: 'mdi:flask-empty-outline',
64-
},
6570
] as const;
6671

6772
// use imported images here

src/libs/api/open-graph/template-html.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ const templateHtml = ({ title, heroImageUrl, avatarImageUrl, siteUrl }: Template
2929
<div class="flex items-center ${isLongSiteUrl ? 'flex-col justify-end items-start' : ''}">
3030
<img
3131
src="${avatarImageUrl}"
32-
width="120"
33-
height="120"
34-
class="rounded-full mr-8 border-2 border-gray-300"
32+
class="w-[120px] h-[120px] rounded-full mr-8 border-2 border-gray-300"
3533
/>
3634
<div class="flex items-center ${isLongSiteUrl ? 'mt-4 text-3xl' : 'text-4xl'}">
3735
<div>${siteUrl}</div>

0 commit comments

Comments
 (0)