사이트 2차 수정, 신규 페이지 추가
This commit is contained in:
@@ -5,7 +5,8 @@ interface SeoOptions {
|
||||
title: string // 페이지 제목 (<title> + og:title)
|
||||
description: string // 메타 설명 (검색결과/공유 미리보기)
|
||||
path: string // 라우트 경로 (canonical·og:url 구성), 예: '/', '/coffee-chat'
|
||||
image?: string // OG 이미지 경로 (기본 /og-image.jpg)
|
||||
image?: string // OG 이미지 경로 (기본 /og-logo.jpg — 로고 이미지)
|
||||
keywords?: string // 메타 키워드(쉼표 구분, 선택)
|
||||
noindex?: boolean // 검색 노출 제외 여부
|
||||
}
|
||||
|
||||
@@ -14,11 +15,12 @@ export function useSeo(opts: SeoOptions) {
|
||||
// 끝 슬래시 제거 후 절대 URL 구성
|
||||
const siteUrl = String(config.public.siteUrl || '').replace(/\/$/, '')
|
||||
const url = siteUrl + opts.path
|
||||
const image = siteUrl + (opts.image || '/og-image.jpg')
|
||||
const image = siteUrl + (opts.image || '/og-logo.jpg')
|
||||
|
||||
useSeoMeta({
|
||||
title: opts.title,
|
||||
description: opts.description,
|
||||
...(opts.keywords ? { keywords: opts.keywords } : {}),
|
||||
ogTitle: opts.title,
|
||||
ogDescription: opts.description,
|
||||
ogUrl: url,
|
||||
|
||||
Reference in New Issue
Block a user