Description
Add Open Graph or other meta tags to HTML output of a service.
Examples
[% // title, url, site
html_meta(); %]
[%html_meta($article->get_description()); %]
[%html_meta(
description: $article->get_description(),
image: url($article->compute_first_image()->href())
title: $article->get_title()
); %]
[%html_meta(tags: ["twitter:site" => "@topincs"]); %]
|
Parameters5
Coding name |
description
|
Description |
The value of og:description meta tag.
|
Position |
1
|
Type |
|
Default value |
NULL, meaning no meta tag og:description is rendered.
|
Comments |
The value is trimmed and stripped of tags.
|
Coding name |
image
|
Description |
The URL of an image to be used as the value of the og:image meta tag in the HTML.
|
Position |
2
|
Type |
|
Default value |
NULL, meaning the tag will be omitted.
|
Coding name |
title
|
Description |
The value of the og:title meta tag.
|
Position |
3
|
Type |
|
Default value |
The name of the service, when not overridden by html_title.
|
Coding name |
type
|
Description |
The type of the website.
|
Position |
4
|
Type |
|
Default value |
website
|
Coding name |
tags
|
Description |
An array of key value pairs of additional meta headers
|
Position |
5
|
Type |
Array(Primitive type)
|
|