OpenGraphTagHelper Class

OpenGraphTagHelper Class

Creeates OpenGraph meta elements for the current page.

public class OpenGraphTagHelper: TagHelper

Inheritance  TagHelper OpenGraphTagHelper


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


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.


Name Description
Process(TagHelperContext, TagHelperOutput)