We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410cd5b commit 11425c5Copy full SHA for 11425c5
packages/components/src/engine/metadata.ts
@@ -38,6 +38,13 @@ export const getMetadata = (props: IsomerPageSchemaType) => {
38
props.layout === "collection"
39
) {
40
metadata.description = props.page.subtitle
41
+ } else if (
42
+ metadata.description === undefined &&
43
+ props.layout === "homepage"
44
+ ) {
45
+ metadata.description = props.content.find(
46
+ (item) => item.type === "hero",
47
+ )?.subtitle
48
}
49
50
if (props.page.permalink === "/") {
0 commit comments