import Head from 'next/head'; import { useRouter } from 'next/router'; import { mySite } from './site'; interface SeoHeadProps { title?: string; description?: string; author?: string; url?: string; imageUrl?: string; } export default function SEOHead({ title = mySite.title, description = mySite.description, author = mySite.author, url, imageUrl = mySite.imageUrl, }: SeoHeadProps) { const { asPath } = useRouter(); const thisUrl = `${mySite.url}${asPath}`; // 최신 날짜로 색인 const currentDate = new Date().toISOString(); return ( {/* 기본 메타 태그 */} {title} {/* Open Graph */} {/* */} {/* Twitter */} {/* verification */} {/* appLinks */} {/* */} {/* JSON-LD (NewsArticle) */}