Skip to content

Notes tagged “indieblocks”

I didn’t wanna deprecate IndieBlocks’ Context block nor …

I didn’t wanna deprecate IndieBlocks’ Context block nor introduce a bunch of breaking changes. So I simply added a couple new blocks (https://github.com/janboddez/indieblocks/tree/new-blocks/blocks). There’s two big differences:

  1. The new blocks support page title and author information (whereas a Context block will only ever show a bare URL), in a so-called h-cite microformat.
  2. They use, or support, Gutenberg’s InnerBlocks. This allows us to ditch sometimes unpredictable—as in, users don’t even know they’re there—block patterns.

Moved some common code into a global object thingy: https://github.com/janboddez/indieblocks/blob/new-blocks/assets/common.js. No clue if this is how it’s done, but it seems to work.

Yay! Another Gutenberg issue that’s existed for years. …

Yay! Another Gutenberg issue that’s existed for years. https://github.com/WordPress/gutenberg/issues/11681 Context: I want to lock down IndieBlocks’ like, but allow (any) InnerBlocks inside the new “like” block. This would allow me to add the necessary .h-cite and .e-content classes in just the right spots, while allowing users to add as many paragraphs, blockquotes, images, and whatnot without mucking up the post’s microformats.

Just switched my other blog to Brian Garnder’s …

Just switched my other blog to Brian Garnder’s Powder theme, and guess what? All microformats still in place! Only thing I had to do was hop in there and enable the post date block to always link to single articles. (Because note titles are hidden, so are the permalinks inside the heading elements.) Had to do that 3 or 4 times, but I can live with that. Another minor gripe: the “Tags:” and “Categories:” prefixes that are shown even when there are no tags and categories.

Notes – Ochtendgrijs
ochtendgrijs.be