ππΈοΈ
7/16/2025 9:41AM
New digital garden theme :)
Start menu here...
Thanks for visiting my website! Or as I like to call it, my web desktop. This is a space that I play around with web technologies, share my thoughts and my half-baked projects. Feel free to explore by clicking around.
Thanks to @manton for updating the bookmarks JSON api this afternoon to include tags so now you can use @sod’s wonderful bookmark plugin to display them (assuming you have the premium Micro.blog plan). You will need to use a custom template like he details in his documentation. The trick is to use the {{ .tags }}
inside the {{ range .items }}
. Here’s how I’m doing it on my site:
You might have noticed I further customized it with longer preview text and some extra replace statements. That’s because the {{< bookmarks >}}
{{ range .items }}
{{ $url := urls.Parse .url }}
{{ if not (hasPrefix .id "link") }}
<figure class="bookmark">
<blockquote>
<p>{{ replace (replace ( .content_html | plainify | truncate 300 ) "Reader: " "") $url.Host "" }}</p>
</blockquote>
<figcaption><cite><a class="u-bookmark-of" href="{{ .url }}">{{ $url.Host }}</a><br/><small>Bookmarked: {{ time.Format "Jan 2, 2006" .date_published}}</small><br/><small class="tags">{{ .tags }}</small></cite></figcaption>
</figure>
{{ end }}
{{ end }}
{{< /bookmarks >}}
.content_html
includes some extra links to the micro.blog reader text which looked a bit strange after you stripped out the html with plainify
. That’s where the {{ replace (replace ( .content_html | plainify | truncate 300 ) "Reader: " "") $url.Host "" }}
line comes in.
I have a lot of interests and this place is a catch all. If you prefer to only follow a couple topics then check out my feeds page for category specific RSS feeds.