The Micro.blog Cards Theme has been updated to v1.1.9.

This version adds a setting to hide the categories from the post. After updating, you can go to your Card Theme settings and click the checkbox to hide the Categories from the post.

If you wish to keep the categories on the page but prefer to move them to the bottom of the screen (this is for you @JohnAN), you can customize the theme. The remainder of this post shows you how to move the categories to the bottom of the page.

Create a custom theme

You’ll want to create a “Custom Theme” in your Micro.blog settings, so your customizations are not lost when a new version of the Cards Theme is published.

  1. Click on Design.
  2. Click on Edit Custom Themes
  3. Click on New Theme.
  4. Give the new theme a title. Only you see this. It can be anything.
  5. Click Add Theme.
  6. Click on the new theme you just created.

Copy the template page

  1. Click on the new theme you just created.
  2. Click New Template.
  3. Give it the name layouts/post/single.html (this is important that it matches exactly).
  4. Paste the code found at the bottom of this post into the body.
  5. Click Update Template to save your changes.

Your files should now look like this.

CleanShot 2023 01 07 at 09 48 22

The layouts/post/single.html file you created will be used instead of the one built into the Cards Theme.

Use your Custom Theme

Before we forget (because I always do), go you Design and change the “Custom Theme” dropdown to select the theme you just created. Click Update Blog Settings at the bottom of the page to save. This will tell Micro.blog to use your custom theme, a layer on top of the Cards Theme.

Note! If any updates are made in the Cards Theme to this layouts/post/single.html file, you will not receive these updates unless you copy the changes into your custom copy of the file.

New Code

This code can be pasted into the new layouts/post/single.html file you created in your custom theme. It will put the categories at the bottom of the post rather than at the top.