Documentation » Structuring Notes and Likes

Structuring Notes and Likes

As mentioned in The “Context” Block:

When you create a new note or like, you’ll be presented with not just a Context block. If you open the List View, you’ll notice a Group block as well, with an empty Paragraph in it. (The Group has been given an e-content class.)

If you mostly stick with the default note and like templates, this isn’t particularly important. When you start moving blocks around, however, it may prove useful to keep an eye on the List View.

Warning: Technicalities Ahead

One idea behind bookmarks and replies was that the Context block sits outside the (single) Group block with the e-content class, while actual content, like a Paragraph block, sits inside that very Group block.

Likes

Likes are a little different: the default like template does not come with a Group block at all. (Not many people add quick thoughts to their likes.)

However, if you do add additional blocks but don’t wrap them in a block with an e-content class, your theme (or IndieBlocks’ theme functions) will likely add such a class to the whole post.

This would cause the Context block to become an integral part of your post’s “e-content.” Not an issue per se, but it affects how most “h-feed aggregators” display posts. (The “solution”? Manually add that “e-content” Group.)

Going Forward

The upcoming version of IndieBlocks will feature new blocks that are both (1) more opinionated (and thus restrictive), and (2) easier to use.

Although in hindsight the Context block was likely a bit too “simple but not easy,” it won’t go anywhere soon. There will be an upgrade path, though, to easily convert older blocks to their newer “cousins.”