jsakamoto / Toolbelt.Blazor.HeadElement

Head element support (change the document title, "meta" elements such as OGP, and "link" elements) for Blazor apps.
https://demo-blazor-headelement.azurewebsites.net/
Mozilla Public License 2.0
158 stars 11 forks source link

[Feature Request] Canonical Links #1

Closed CybrZr00 closed 4 years ago

CybrZr00 commented 4 years ago

Would it be possible, in a future release to add a ByLink() function so we are able to set the canonical address of each page?

e.g:

ByLink("canonical", "https://foo.com/bar")

Thank you!

jsakamoto commented 4 years ago

Thank you for your nice feature request!

This feature also helps change favicon dynamically.

I'll try to implement this feature.

jsakamoto commented 4 years ago

I published Blazor Head Element Helper ver.1.1.0.

And, it supports manipulation of "link" elements. Please see also section C. of README.

Please try it out! ;)

CybrZr00 commented 4 years ago

Wow, that's excellent! I'll give it a try later. Thank you!

CybrZr00 commented 4 years ago

The feature works perfectly, and it even looks like you can add CSS dynamically as well, which of course means we can break up our style sheets, which means faster initial paint on the index!