Skip to content

Rebuilding my site - Part 2: Microformats

Adding a bit of spice to my HTML.

ยท 4 min

Something I never got around to doing on my old site was to thoroughly annotate the content with Microformats. In rebuilding it from the ground up, I wanted to correct that.

Microformats are a standard for annotating markup on the web, making it more meaningful. This makes your site machine readable, which is useful for things like RSS, but also for standardised interactions among websites.

IndieWeb? What? Why? How?

The IndieWeb in a nutshell (at least for me) is the idea of owning your own space on the internet and owning the content you put out there. Other folks much smarter than I am have shared some great stuff on the IndieWeb. In particular, I'd recommend these three resources: is a good starting point in terms of implementation. It's likely that you'll need to reach for more docs, but at least it gets you going ๐Ÿ™‚


If you'd like to annotate your site using Microformats, check out the official docs. There are some good blog posts on the subject out there, but what worked for me was to follow these steps:

  1. Review the content on my site.
  2. Read the wiki pages to see available items and properties.
  3. Look through a few sites in the wild to see how they're done.

๐Ÿ•ต๐Ÿผโ€โ™€๏ธ If you want to snoop into people's sites, I recommend parsing their site here and then looking through their markup to see how they structured their properties.

Some folks whose lovely sites I snooped on: Jamie Tanna, Ana Rodrigues, Max Bรถck, and Jeremy Keith.

Nothing about my implementation is unique or groundbreaking, but if like me, you fare well by looking at real world examples, here are my snippets:

Personal Card

A while back I implemented RSVPs on my site, with help from Jamie's blog post. For that, I created an h-card that I hid from the page. I'm keeping that same setup for now. It looks like this:

<section class="p-author h-card" style="display: none">
<a href="" class="u-url">
<img src="" alt="my face" class="u-photo" />
<span class="p-name">Carolina Gilabert</span>
You can say hi at
<a href="" class="u-email"></a>

In future, I'd like to make a feature of the h-card on my homepage, kinda like Jamie has done at the top of his site or how Ana has on her site's footer.


I have a couple of feeds around my site: the latest posts section on my homepage and the blog page. For those, I'm using h-feed:

<ul class="h-feed">
{%- for post in postList %}
<article class="h-entry">
{% include "h-card.html" %}
<a class="u-url" href="{{ post.url }}">
<h2 class="p-name">{{ }}</h2>
<time class="dt-published" datetime="{{ | isoDate }}">
{{ | date }}
ยท {{ }}
<p class="p-summary">{{ }}</p>
{%- endfor %}

Blog Posts

For the posts, I'm using h-entry and my layout looks like this:

<div class="h-entry">
<h1 class="p-name">{{ title }}</h1>
<p class="p-summary"><em>{{ subtitle }}</em></p>
<time class="dt-published" datetime="{{ date | isoDate }}">
{{ date | date }}
ยท {{readingTime }}
{% include "h-card.html" %}
<div class="e-content">
{{ content | safe }}


As I mentioned above, events were what I implemented first on this site, way back on the Gatsby days, so I could RSVP to IndieWeb events. This is what that partial looks like:

<article class="h-entry" id="{{ }}">
<a class="u-url" href="{{ }}">
<span role="img" aria-label="chainlink emoji"> ๐Ÿ”— </span>
{% include "h-card.html" %}
<span class="p-rsvp" value="{{ event.value }}"> {{ event.value }} </span>
<a class="u-in-reply-to" href="{{ event.url }}"> {{ }} </a>
<time datetime="{{ }}"> {{ }} </time>

What's next?

This is a pretty good starting point for layering more IndieWeb functionality onto my site. I'll probably do some basic styling next, and then re-implement IndieAuth.

It might happen next week, or next year, but it's coming. See you then! ๐Ÿ˜„


  • added a missing p-name class on the title tag in the feeds code sample
  • changed the p-description class in the post code sample to a p-summary, to align with the feed properties