글 설정 태그와 대표 이미지 흐름 정리

This commit is contained in:
2026-05-07 15:55:20 +09:00
parent 0f60039126
commit f757c3db78
11 changed files with 240 additions and 132 deletions

View File

@@ -21,8 +21,7 @@ const siteUrl = computed(() => String(config.public.siteUrl || '').replace(/\/$/
const pageUrl = computed(() => `${siteUrl.value}/post/${post.value.slug}`)
const seoTitle = computed(() => post.value.seoTitle || post.value.title)
const seoDescription = computed(() => post.value.seoDescription || post.value.excerpt || 'sori.studio 개인 블로그')
const canonicalUrl = computed(() => post.value.canonicalUrl || pageUrl.value)
const ogImage = computed(() => post.value.ogImage || post.value.featuredImage || '')
const ogImage = computed(() => post.value.featuredImage || '')
/**
* 절대 URL 생성
@@ -46,7 +45,7 @@ useHead(() => ({
link: [
{
rel: 'canonical',
href: canonicalUrl.value
href: pageUrl.value
}
],
meta: [