Closed tannerdolby closed 2 years ago
Support added and custom tags can be added/generated using the custom
argument.
Parameter: custom
- an array of "element" arrays.
custom
type: Array<Array
Example usage:
{% metagen
title="some title",
custom=[["meta", "", {name: "myCustomTag", content: "foo" }]]
%}
=>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>some title</title>
<meta name="title" content="some title">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="some title">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@undefined">
<meta name="twitter:title" content="some title">
<meta name="myCustomTag" content="foo">
Allow user-defined tags, that is an ability to specify any custom field that isn't mentioned in the README.md or docs e.g.
data.my_custom_field
:would generate: