FigureShortcode Class
Generates HTML5 figure elements.
Namespace
Statiq.Web.Shortcodes
Interfaces
Base Types
graph BT Type-->Base0["SyncShortcode"] click Base0 "/api/Statiq.Common/SyncShortcode" Base0-->Base1["object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Statiq.Common/IShortcode" Type["FigureShortcode"] class Type type-node

Syntax

public class FigureShortcode : SyncShortcode, IShortcode

Examples

Example usage:

<?# Figure Src="/assets/statiq.jpg" ?>
Statiq Logo
<?#/ Figure ?>

Example output:

<figure>
  <img src="/assets/statiq.jpg" />
  <figcaption>Statiq Logo</figcaption>
</figure>

Remarks

The content of this shortcode specifies a caption to output inside a nested figcaption element.

Methods

Extension Methods