CodePenShortcode Class
Embeds a CodePen pen.
Namespace
Statiq.Web.Shortcodes
Interfaces
Base Types
graph BT Type-->Base0["EmbedShortcode"] click Base0 "/api/Statiq.Web.Shortcodes/EmbedShortcode" Base0-->Base1["Shortcode"] click Base1 "/api/Statiq.Common/Shortcode" Base1-->Base2["object"] Type-.->Interface0["IShortcode"] click Interface0 "/api/Statiq.Common/IShortcode" Type["CodePenShortcode"] class Type type-node

Syntax

public class CodePenShortcode : EmbedShortcode, IShortcode

Examples

<?# CodePen edanny/pen/JXwgdK /?>

Remarks

You need the path of the pen (essentially everything after the domain in the URL):
https://codepen.io/edanny/pen/JXwgdK

Fields

Name Field Type Constant Value Summary
Endpoint string Endpoint
Inherited from EmbedShortcode
static
Format string Format
Inherited from EmbedShortcode
static
MaxHeight string MaxHeight
Inherited from EmbedShortcode
static
MaxWidth string MaxWidth
Inherited from EmbedShortcode
static
Url string Url
Inherited from EmbedShortcode
static

Methods

Extension Methods