Skip to content

Metatag

The Metatag object represents HTML base tags that describe a page's content for search engines.

classDiagram
  direction LR
  class Metatag{
    string content
    string name
    string property
  }

Properties

Attribute name Type Description
content string Metatag content.
name null|string Metatag name.
property null|string Metatag property.

Examples

content property

{{ metatag.content }}
Author name

name property

{{ metatag.name }}
author

property property

{{ metatag.property }}
description

Usage examples

source
<meta content="{{ metatag.content }}" name="{{ metatag.name }}" property="{{ metatag.property }}" />
output
<meta content="Author name" name="author" property="og:description" />