Adds a shortcode and uses a
Config<TValue>
to determine
the shortcode result.
- Namespace
- Statiq
.Common - Containing Type
- I
Shortcode Collection Extensions
Syntax
public static void Add(this IShortcodeCollection shortcodes, string name, Config<ShortcodeResult> shortcode)
Parameters
Name | Type | Description |
---|---|---|
shortcodes | IShortcodeCollection | The shortcodes. |
name | string | The name of the shortcode. |
shortcode | Config |
The content of the shortcode. |