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