OpenGraphTagHelper Class

OpenGraphTagHelper Class

Creeates OpenGraph meta elements for the current page.

[HtmlTargetElement("re-opengraph")]
public class OpenGraphTagHelper: TagHelper

Inheritance  TagHelper OpenGraphTagHelper

Constructors

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

Properties

Name Description
Image The OpenGraph image. Must be a or object. No image element is rendered if not specified.
Title The OpenGraph title. Defaults to the page title if not specified.
Type The OpenGraph type. Defaults to "website" if not specified.

Methods

Name Description
Process(TagHelperContext, TagHelperOutput)