Skip to content

Commit 52e1447

Browse files
fix: rename OgImageSaas.vue to .satori.vue and add headline prop for nuxt-og-image v6
Agent-Logs-Url: https://github.com/TechWatching/techwatching.dev/sessions/712e7fdd-498f-4c52-ae77-2173710bc933 Co-authored-by: TechWatching <15186176+TechWatching@users.noreply.github.com>
1 parent 2397751 commit 52e1447

8 files changed

Lines changed: 11 additions & 7 deletions

File tree

app/components/OgImage/OgImageSaas.vue renamed to app/components/OgImage/OgImageSaas.satori.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ defineProps({
1111
description: {
1212
type: String,
1313
required: true
14+
},
15+
headline: {
16+
type: String,
17+
default: undefined
1418
}
1519
})
1620
</script>

app/pages/goodies/[slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (goodie.value.image?.src) {
3232
twitterImage: joinURL(site.url, goodie.value.image.src)
3333
})
3434
} else {
35-
defineOgImageComponent('SaaS', {
35+
defineOgImageComponent('Saas', {
3636
headline: 'Goodies'
3737
})
3838
}

app/pages/goodies/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useSeoMeta({
1414
ogDescription: description
1515
})
1616
17-
defineOgImageComponent('SaaS')
17+
defineOgImageComponent('Saas')
1818
1919
const activeGoodie = useState<number | null>('activeGoodie', () => null)
2020
</script>

app/pages/posts/[slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if (post.value.image?.src) {
4848
twitterImage: joinURL(site.url, post.value.image.src)
4949
})
5050
} else {
51-
defineOgImageComponent('SaaS', {
51+
defineOgImageComponent('Saas', {
5252
headline: 'Blog'
5353
})
5454
}

app/pages/posts/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useSeoMeta({
1414
ogDescription: description
1515
})
1616
17-
defineOgImageComponent('SaaS')
17+
defineOgImageComponent('Saas')
1818
1919
const activePost = useState<number | null>('activePost', () => null)
2020

app/pages/speaking.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ useSeoMeta({
2424
ogDescription: description
2525
})
2626
27-
defineOgImageComponent('SaaS')
27+
defineOgImageComponent('Saas')
2828
2929
// Sort events by date (most recent first) and filter out incomplete entries
3030
const events = computed(() => {

app/pages/tags/[tag].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ useSeoMeta({
2323
ogDescription: description
2424
})
2525
26-
defineOgImageComponent('SaaS')
26+
defineOgImageComponent('Saas')
2727
2828
const activePost = useState<number | null>('activePost', () => null)
2929
</script>

app/pages/tags/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ useSeoMeta({
3131
ogDescription: description
3232
})
3333
34-
defineOgImageComponent('SaaS')
34+
defineOgImageComponent('Saas')
3535
</script>
3636

3737
<template>

0 commit comments

Comments
 (0)