Added additional meta for SEO

This commit is contained in:
Patrick Alvin Alcala 2025-09-18 08:32:57 +08:00
parent 673a9f173c
commit 11992d9b1e

View file

@ -10,6 +10,7 @@ interface Props {
children: JSXElement
font?: 'roboto' | 'inter' | 'montserrat' | 'open-sans' | 'public-sans'
preloadBackground?: boolean
author: string
}
export default (props: Props) => {
@ -17,12 +18,13 @@ export default (props: Props) => {
<>
<html lang="en">
<head>
<base href="/" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="name" content={props.name} />
<meta name="description" content={props.description} />
<meta name="title" property="og:title" content={props.name} />
<meta name="keywords" content="HTML, CSS, JavaScript" />
<meta name="author" content={props.author} />
<meta property="og:description" content={props.description} />
<meta property="og:type" content="website" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
@ -33,6 +35,7 @@ export default (props: Props) => {
<link rel="preload" href={background1.src} as="image" type="image/svg+xml" />
<link rel="preload" href={background2.src} as="image" type="image/svg+xml" />
</Show>
<base href="/" />
<title>{props.title}</title>
</head>