Adds a shortcode by type.
- Namespace
- Statiq
.Common - Containing Type
- I
Shortcode Collection Extensions
Syntax
public static void Add(this IShortcodeCollection shortcodes, string name, Type shortcodeType)
Parameters
| Name | Type | Description |
|---|---|---|
| shortcodes | IShortcodeCollection | The shortcodes. |
| name | string | The name of the shortcode. |
| shortcodeType | Type | The type of the shortcode to add (must implement IShortcode). |