fill most content + improve ux
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
import { useTranslations } from '@/i18n/utils'
|
||||
import '@/styles/global.css'
|
||||
|
||||
type Props = {
|
||||
@@ -6,6 +7,7 @@ type Props = {
|
||||
}
|
||||
|
||||
const { title } = Astro.props
|
||||
const t = useTranslations(Astro.currentLocale)
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@@ -13,9 +15,17 @@ const { title } = Astro.props
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={t('seo.meta.description')} />
|
||||
<meta name="keywords" content={t('seo.meta.keywords')} />
|
||||
<meta property="og:title" content={`${title} | ${t('seo.og.title')}`} />
|
||||
<meta property="og:description" content={t('seo.og.description')} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:locale" content={Astro.currentLocale} />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<link rel="canonical" href={Astro.url} />
|
||||
<title>{`${title} | ${t('seo.og.title')}`}</title>
|
||||
</head>
|
||||
<body class="flex flex-col">
|
||||
<slot />
|
||||
|
||||
Reference in New Issue
Block a user