When I started the recipe block, I knew that I wanted to allow control over the section heading levels. I felt it wouldn't be possible to assume fixed heading levels – should the Recipe Title be an h2, and the "ingredients" heading be h3? What if the post title is the recipe title, and the [...]
Nifty Code #2: Block parents
In my previous post, I described using InnerBlocks to create a template and restrict the blocks allowed in "parent block". This post is kind of the reverse 🙂 When writing the Recipe Block, I wanted to allow for repeating fields of ingredients and directions. I thought the best way for this would be to make [...]
Nifty Code #1: InnerBlocks
A new series I’m hoping to write this year, full of cool things you can do in the block editor or in JS in general. Some of this has been written about before, but I’ll also point out the use in projects I'm working on. 👩🏼💻 When writing the Recipe Block, I wanted to set [...]
Recipe Block
Recipe block used on a site with the Twenty Nineteen theme Over the holidays, I put together a "Recipe Block" plugin for Gutenberg. You can download a ready-to-use zip of the plugin on the github releases page; or you can download & build the developer version by cloning it from github. There are developer installation [...]
First (& last) post of 2018
This is kind of the obligatory post so that I don't leave 2018 without blogging 😬 Not including Christmas travel, I took 10 trips this year – including my first big vacation trip, to Ireland (where I got engaged 💍🎉). The rest were conferences & team meetups, all in North America. I didn't give a [...]