feat: add meta tags, and links, and other SEO optimization to the head

This commit is contained in:
Stefan Imhoff
2023-06-12 17:41:22 +02:00
parent 15daaa39e1
commit a823e2ff9b
14 changed files with 179 additions and 32 deletions

View File

@@ -6,24 +6,30 @@ import BaseLayout from './BaseLayout.astro';
export interface Props {
backLink?: string;
class?: string;
cover?: string;
description?: string;
footer?: boolean;
gap?: boolean;
grid?: 'fullsize' | 'wide' | 'narrow';
header?: boolean;
innerGrid?: boolean;
nofollow?: boolean;
noindex?: boolean;
title: string;
}
const {
backLink,
class: className,
cover,
description,
footer = true,
gap = true,
grid = 'narrow',
header,
innerGrid,
nofollow,
noindex,
title,
} = Astro.props;
@@ -48,10 +54,13 @@ const wrapperClasses = cx(
<BaseLayout
backLink={backLink}
cover={cover}
description={description}
footer={footer}
header={header}
nofollow={nofollow}
noindex={noindex}
title={title}
description={description}
>
<div class={gridClasses}>
<slot name="title" />