Add a Glitch embed

Published on

Add a Glitch Embed

To add an Glitch embed to a post you can use a custom shortcode which optimizes Glitch embeds on the site.

{% Glitch
id='fav-kitties-compress-starter'
%}

The Glitch embed shortcode supports additional properties though. Below is an example interface of the accepted argument:

interface GlitchArgs {
allow?: string | string[];
height?: number;
id: string;
path?: string;
previewSize?: number;
}

Updated on Improve article

We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.