We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54201c8 commit d0c19f9Copy full SHA for d0c19f9
1 file changed
src/layouts/Layout.astro
@@ -11,6 +11,9 @@ interface Props {
11
title?: string;
12
useTitleTemplate?: boolean;
13
description?: string;
14
+ canonicalUrl?: string;
15
+ index?: boolean;
16
+ follow?: boolean;
17
};
18
}
19
@@ -74,6 +77,9 @@ const { metadata } = Astro.props;
74
77
? `%s - ${SITE_CONFIG.title}`
75
78
: undefined}
76
79
description={metadata?.description || SITE_CONFIG.description}
80
+ canonical={metadata?.canonicalUrl || Astro.url.href}
81
+ noindex={metadata?.index === false}
82
+ nofollow={metadata?.follow === false}
83
openGraph={{
84
basic: {
85
title: SITE_CONFIG.title,
0 commit comments