Renders the metadata value with the given key from the current document.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- SyncShortcode
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 |