Renders the metadata value with the given key from the current document.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- SyncShortcode
graph BT
Type-->Base0["SyncShortcode"]
click Base0 "/api/Statiq.Common/SyncShortcode"
Base0-->Base1["object"]
Type-.->Interface0["IShortcode"]
click Interface0 "/api/Statiq.Common/IShortcode"
Type["MetaShortcode"]
class Type type-node
Syntax
public class MetaShortcode : SyncShortcode, IShortcode
Remarks
The metadata value will be rendered as a string. If no value exists with the
specified key, nothing will be rendered. In addition to using the shortcode
by the
Meta
name like <?# Meta key /?>
, this shortcode can also be used
with a special syntax: <?#= key /?>
.
Methods
Name | Return Value | Summary |
---|---|---|
Execute |
ShortcodeResult |