Creates OpenGraph meta elements for the current page.

[HtmlTargetElement]
public class OpenGraphTagHelper
Inheritance:
ObjectTagHelperOpenGraphTagHelper

Constructors

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

Properties

Title The OpenGraph title. Defaults to the page title if not specified.
Type The OpenGraph type. Defaults to "website" if not specified.
Image The OpenGraph image. Must be a Media item, IContentType object or string url. No image element is rendered if not specified.

Methods

Process(TagHelperContext, TagHelperOutput)