Skip to content

Commit 315f381

Browse files
committed
feat: restore previous og image in blog
1 parent 739a8f0 commit 315f381

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

app/components/BlogPostWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ useSeoMeta({
1313
ogType: 'article',
1414
})
1515
16-
defineOgImage('BlogPost.takumi', {
16+
defineOgImageComponent('BlogPost', {
1717
title: props.frontmatter.title,
1818
authors: props.frontmatter.authors,
1919
date: props.frontmatter.date,

app/components/OgImage/BlogPost.takumi.vue renamed to app/components/OgImage/BlogPost.vue

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,36 @@ const formattedAuthorNames = computed(() => {
6969
>
7070
<!-- npmx logo - top right -->
7171
<div
72-
class="absolute top-12 z-10 flex items-center gap-1 text-5xl tracking-tight"
73-
style="right: 6rem"
72+
class="absolute top-12 z-10 flex items-center gap-1 text-5xl font-bold tracking-tight"
73+
style="font-family: 'Geist', sans-serif; right: 6rem"
7474
>
7575
<span :style="{ color: primaryColor }" class="opacity-80">./</span>
7676
<span class="text-white">npmx</span>
7777
</div>
7878

7979
<div class="relative z-10 flex flex-col gap-2">
8080
<!-- Date -->
81-
<span v-if="formattedDate" class="text-3xl text-[#a3a3a3] font-light">
81+
<span
82+
v-if="formattedDate"
83+
class="text-3xl text-[#a3a3a3] font-light"
84+
style="font-family: 'Geist', sans-serif"
85+
>
8286
{{ formattedDate }}
8387
</span>
8488

8589
<!-- Blog title -->
86-
<h1 class="text-6xl tracking-tight leading-[1.2] w-9/10" style="letter-spacing: -0.03em">
90+
<h1
91+
class="text-6xl font-semibold tracking-tight leading-snug w-9/10"
92+
style="font-family: 'Geist', sans-serif; letter-spacing: -0.03em"
93+
>
8794
{{ title }}
8895
</h1>
8996

9097
<!-- Authors -->
9198
<div
9299
v-if="resolvedAuthors.length"
93-
class="flex items-center gap-4 self-start justify-start flex-nowrap mt-4"
100+
class="flex items-center gap-4 self-start justify-start flex-nowrap"
101+
style="font-family: 'Geist', sans-serif"
94102
>
95103
<!-- Stacked avatars -->
96104
<span>
@@ -120,7 +128,7 @@ const formattedAuthorNames = computed(() => {
120128
</span>
121129
</span>
122130
<!-- Names -->
123-
<span style="font-size: 24px; color: #a3a3a3; font-weight: 400">{{
131+
<span style="font-size: 24px; color: #a3a3a3; font-weight: 300">{{
124132
formattedAuthorNames
125133
}}</span>
126134
</div>

0 commit comments

Comments
 (0)