글 설정 태그와 대표 이미지 흐름 정리
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user