App
#5 JSON-LD Headers for SEO
IPageService to add JSON-LD Headers
This page adds 2 JSON-LD tags to the html-head. View the page source to see it.
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>
.
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
#5 JSON-LD Headers for SEO