import BLOG from '@/blog.config' import Head from 'next/head' const CommonHead = ({ meta }) => { let url = BLOG.path.length ? `${BLOG.link}/${BLOG.path}` : BLOG.link if (meta) { url = `${url}/${meta.slug}` } const title = meta?.title || BLOG.title const description = meta?.description || BLOG.description const type = meta?.type || 'website' const keywords = meta?.tags || BLOG.keywords return {title} {BLOG.seo.googleSiteVerification && ( )} {keywords && ( )} {meta.type === 'article' && ( <> )} } export default CommonHead