Easier map embeds
I have a new version of Sunlit in review at Apple, and Android in development, so I wanted to improve how Micro.blog allows map embeds on your blog for check-ins. I’ve updated the default theme Sumo to support this directly. The Hugo code is really simple now:
{{ with .Params.location.map_url }}
<img src={{ . }}">
{{ end }}
You can also include a size parameter at the end for larger maps — “s”, “m”, “l”, or “xl” — like ?size=m for a medium (600x600) map.
It looks like this on my check-ins blog:
We’ll update the other themes over time, or you can edit the templates on your blog to include the above code. Some themes may need a little extra CSS so that maps look good. For more details about Micro.blog’s support for locations, including sending location data via the API, check out this help page.