Using Trello as a Super Simple CMS

Using Trello as a Super Simple CMS

Sometimes our sites need a little sprinkling of content management. Not always. Not a lot. But a bit. The CMS market is thriving with affordable, approachable products, so we’re not short of options. Thankfully, it is a very different world to the one that used to force companies to splash out a ga-jillionty-one dollars (not an exact cost: I rounded to the nearest bazillion) for an all-singing, all-dancing, all-integrating, all-personalizing, big-enterprise-certified™ CMS platform.

[…]

But we can do better. Let’s also handle attached images, and also add a way to have content staged for review before it goes live.

[…]

Then we can let Eleventy turn that into HTML for us along with everything else. This code looks for cards in our JSON and massages the data into the shape that we’ll need.

[…]

A little more filtering of our JavaScript object is called for:

[…]

In theory, we could make as many branches and labels as we like, and have all sorts of staging and testing environments. Ready to promote something from “stage” to “live”? Swap the labels and you’re good to go!

[…]

Got ‘em? Great! If you save them in a .env file in your project, you can run this command to set up the Trello webhook:

[…]