Snippets

Published on

I created a couple of snippets, which are similar to Eleventy shortcodes. The difference is that they're only accessed in the WYSIWYG editor rather than in markdown.

Image snippet

I created a snippet to ensure that images within the body of a post use lazy loading, but it could also be useful for applying a class selector to the image if necessary.

The image below was added using a snippet.

A diagram showing data coming from Airtable

Table snippet

Tables come in handy sometimes!

Header Header Header
Cell Cell Cell
Cell Cell Cell
Cell Cell Cell