HeadTagHelper Class

HeadTagHelper Class

Adds Redakt features to the head element.

[HtmlTargetElement("head", Attributes = "re-canonical")]
public class HeadTagHelper: TagHelper

Inheritance  TagHelper HeadTagHelper

Constructors

Name Description
HeadTagHelper(IRedaktContext) Default constructor. Services are injected by the IoC container.

Properties

Name Description
Canonical Indicates whether to automatically add a canonical tag to the head. Also available as a separate CanonicalTagHelper.

Methods

Name Description
Process(TagHelperContext, TagHelperOutput)