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