Added additional meta for SEO
This commit is contained in:
parent
673a9f173c
commit
11992d9b1e
1 changed files with 4 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ interface Props {
|
||||||
children: JSXElement
|
children: JSXElement
|
||||||
font?: 'roboto' | 'inter' | 'montserrat' | 'open-sans' | 'public-sans'
|
font?: 'roboto' | 'inter' | 'montserrat' | 'open-sans' | 'public-sans'
|
||||||
preloadBackground?: boolean
|
preloadBackground?: boolean
|
||||||
|
author: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
|
|
@ -17,12 +18,13 @@ export default (props: Props) => {
|
||||||
<>
|
<>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<base href="/" />
|
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||||
<meta name="name" content={props.name} />
|
<meta name="name" content={props.name} />
|
||||||
<meta name="description" content={props.description} />
|
<meta name="description" content={props.description} />
|
||||||
<meta name="title" property="og:title" content={props.name} />
|
<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:description" content={props.description} />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
<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={background1.src} as="image" type="image/svg+xml" />
|
||||||
<link rel="preload" href={background2.src} as="image" type="image/svg+xml" />
|
<link rel="preload" href={background2.src} as="image" type="image/svg+xml" />
|
||||||
</Show>
|
</Show>
|
||||||
|
<base href="/" />
|
||||||
|
|
||||||
<title>{props.title}</title>
|
<title>{props.title}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue