Skip to content

Allow tags such as meta to be added to the document head #804

@tomdye

Description

@tomdye

Enhancement

In order to improve SEO for static sites we need a way to be able to pass meta tags and such to the document head. This should be possible or a per page and an app wide basis.

When adding meta tags on a page / widget, these should be removed from the document head when that widget is destroyed.

Desired usage would follow the same pattern as the existing body tag.
ie.

export const HomePage = factory(function HomePage() {
	return (
		<div classes={css.root}>
			<head>
				<meta name="googlebot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
				<meta name="bingbot" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
				<meta property="og:locale" content="en_US" />
			</head>
			{ ...content }
		</div>
	);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions