IPageService AddIcon to Html Headers
This page sets various icon headers according to best practices.
Kit.Page gets the Page Service on newer Razors
This tutorial inherits from the Custom.Hybrid.Razor14
or the Custom.Hybrid.RazorTyped
base class.
This allows us to use Kit.Page
to access an IPageService
without having to use GetService<IPageService>
.
⬇️ Result | Source ➡️
This page sets various icon headers according to best practices.
Look at the html-header in the output-source to see the effect.
The following links will set different icons depending on what you need.
The following links will set different icons depending on what you need.
Output is Invisible as it only affects the HTML Head
This sample modifies the HTML head, so it's not visible here.
To see the effect, look at the source in the browser