Fix keywords for BlogLayout
This commit is contained in:
@@ -8,6 +8,7 @@ interface Props {
|
|||||||
settings: BlogLayoutProps;
|
settings: BlogLayoutProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const tags = Astro.props.settings.tags ?? [];
|
||||||
const pageSettings = Astro.props.settings.searchEngine;
|
const pageSettings = Astro.props.settings.searchEngine;
|
||||||
const settings = await getSettings();
|
const settings = await getSettings();
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ const css = {
|
|||||||
<link rel="alternate" type="application/rss+xml" href="/rss.xml" title="RSS" />
|
<link rel="alternate" type="application/rss+xml" href="/rss.xml" title="RSS" />
|
||||||
<link rel="canonical" href={`${settings.website.domainName}/`} />
|
<link rel="canonical" href={`${settings.website.domainName}/`} />
|
||||||
<meta name="robots" content="index,follow" />
|
<meta name="robots" content="index,follow" />
|
||||||
<meta name="keywords" content={[].join(',')} />
|
<meta name="keywords" content={tags.join(',')} />
|
||||||
|
|
||||||
<!-- Low Priority Page Metadata -->
|
<!-- Low Priority Page Metadata -->
|
||||||
<meta name="description" content={pageSettings.description} />
|
<meta name="description" content={pageSettings.description} />
|
||||||
|
|||||||
Reference in New Issue
Block a user