Jan-Lukas Else

Thoughts of an IT expert

Tags: Hugo


Published on in 💬 Micro
Reply to: A toot by Jan Boddez

Mastodon doesn’t support “Article” posts and only shows the summary from them. But not only that, it doesn’t seem to unescape escaped HTML and that’s why articles from my blog looked so weird on Mastodon, while they worked fine on Pleroma and Microblog.pub. I now fixed the escaping. My Hugo module for ActivityStreams representation is available on Codeberg.

View

Pure CSS Lightbox in Hugo theme

Published on in 👨‍💻 Dev

Hugo themes have the option to override the default rendering of Markdown images by using “Markdown Render Hooks” since version 0.62.0. By creating a file in layouts/_default/_markup named render-image.html it is possible to use a custom template for rendered images. This gives a lot of flexibility. I just used that flexibility to create a lightbox with pure CSS (without using JavaScript, like many lightbox implementations do). After clicking (or tapping) on an content image, you will see it filling the browser view. Another click brings you back to the content.

View

Adding ActivityStreams representations to Hugo

Published on in 👨‍💻 Dev
Updated on

I promised and people already asked, so here is the first part of the documentation about how I enabled ActivityPub support on my Hugo-based blog:

View

How I automatically create my blogroll

Published on in 👨‍💻 Dev
Updated on

I just updated my blogroll and thought that it might be a great idea to share my workflow to do exactly that. I use Miniflux a lot. Using Miniflux, I read all the blogs and get all the news, get updates from all the YouTubers and even subscribe to some Mastodon accounts (fediverse microblogs). I use multiple categories to sort the feeds. One of those categories is “Blogs” with all the blogs, which I also list on my blogroll.

View

Updated Hugo build workflow

Published on in 💬 Micro

After getting inspired by Kevin C. Coram, the blog is now generated by Hugo on a private Drone CI instance. Using a custom Docker image with Hugo, the site gets generated and the output is then uploaded to the server using rsync. Because this approach is much cleaner than my previous one, I could now also setup things like a preview page and I can update Hugo versions for my sites independently.

View

IndieWeb dream

Published on in 💭 Thoughts

My IndieWeb setup is continuing to evolve. I just added support for syndication (this post should appear on IndieNews) and JSON-posting to my Hugo backend and theme. Unfortunately, adding support for more IndieWeb features to this setup requires a lot of documentation reading, reverse engineering and looking at how other people have done that (of course in other programming languages, one has not much knowledge in).

View

More thoughts about ActivityPub support for this Hugo blog

Published on in 💬 Micro

I plan to add a bit of ActivityPub to my blog to be able to interact with the fediverse, without the need to use Mastodon, Pleroma or my current microblog. Just my static Hugo blog with it’s dynamic Go-backend. Because I don’t want to implement everything from scratch - I haven’t yet added media support for MicroPub - I am in search for libraries that help implementing ActivityPub, or at least give me a starting point. I discovered the library activityserver, which is used by a tool called pherephone by write.as, maybe that can help me.

View

My blog went viral and did just fine

Published on in 💭 Thoughts

Yesterday, I posted a link to a tweet by DHH on my blog. It’s about “Google tax”. Companies nowadays have to buy ads to appear on top for searches for their brand name.

View

Webmention update

Published on in 💬 Micro

I’m now receiving webmentions myself and also show them as “interactions” on this blog.

View

A new “Share” option

Published on in 💬 Micro

Thanks to AddToAny, there’s now a “Share” option on my blog. If you find an article share-worthy, simply click on that link and select how to share this article. It should be pretty simple.

View

Previous

Next

Jan-Lukas Else