Toolbelt.Blazor.HeadElement icon indicating copy to clipboard operation
Toolbelt.Blazor.HeadElement copied to clipboard

Add Meta Element without overwriting the existing one

Open markus-renezeder opened this issue 4 years ago • 1 comments

In some cases it would be nice to add the same meta tag multiple times eg the og:image

In my case: I want to display more images or create a carousel if the link is shared on facebook. For this it is necessary to add the same tag multiple times.

BR Markus

markus-renezeder avatar Oct 06 '21 13:10 markus-renezeder

Thank you for your proposal. I'll consider how to implement it.

But unfortunately, it will not be easy because of the architecture of this library. So it will take a long time until implemented the multiple "og:image" feature.

By the way, .NET 6 now supports the <HeadContent> component.

See also: https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-7/#modify-html-head-content-from-blazor-components

If you can chose .NET 6 platform, please consider to use the <HeadContent> component for the multiple "og:image".

jsakamoto avatar Oct 07 '21 11:10 jsakamoto