jlelse's Blog

Thoughts, stories and ideas

Micropub

in 💬 Micro

Although I would have enough things to do for my studying, I took some time today to do some programming on my Micropub endpoint. I can now use other git hosting than Gitea and can add alternative text to images. Here is a little test:

🖼️ Read more

in 💬 Micro
Reply to: A note by Henrique Dias

I use BunnyCDN as storage for my Micropub media endpoint, where I upload all the photos and other media files I publish on my blog. When I upload a new photo the media endpoint first uploads the original file with the name of it’s SHA-256 hash value (so when I upload the same file multiple times, it doesn’t create multiple files). When I upload an image (JPEG or PNG) it also gets optimized and resized to a maximum width of 2000 pixels using the Tinify API (and then uploaded to BunnyCDN too), doing that significantly reduces the file size of the images displayed on my blog.

Read more

Tinify

in 🔗 Links

Tinify or TinyPNG or TinyJPEG is the service I use to automatically compress and resize images uploaded to my micropub media endpoint. It’s a great service with a nice developer API that also offers a free limit of 500 compressions per month and has a pay-what-you-use policy after that (but I won’t upload more than 500 images per month anyway). I use a library written in Go to use the API.

🖼️ Read more

How should I upload files to my Micropub media endpoint?

in 💬 Micro

The first things I did this year was to create a media endpoint for my Micropub server. It works by uploading files to BunnyCDN via their storage API (great service and easy API!). However, now that I have this endpoint, I would also like to use it. It seems that there is a lack of clients that support uploading media to the media endpoint and then returning me the correct URL.

Read more

More thoughts about ActivityPub support for this Hugo blog

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.

Read more

in 💬 Micro

I’m expanding my hugo-micropub endpoint all the time. My next planned features are: automatic webmention sending, probably by using Telegraph automatic posting to my Microblog.pub instance support for updating entries (I already built support for querying content items)

Read more

Little improvements to my Micropub endpoint

in 💭 Thoughts

The great thing about my custom Micropub endpoint for Hugo is, that I can add all the features I need. Today I added a feature, that purges the BunnyCDN cache 10 seconds after a new entry got published. Sometimes it happens that I open its URL before the Hugo build is finished and then a 404 page gets cached. Currently Hugo needs around three seconds to build my blog (on the server, on my desktop PC it’s even faster).

Read more

I can now use Micropub to publish to my blog

in ✍️ Posts

I can now make use of Micropub to post on my blog! More information: I am in search for an easier way to blog from the go for quite some time now. Recently, I implemented a web-based form to submit new posts using the API of my self-hosted Gitea. While that worked, it was still not optimal. I already heard of Micropub before, since I joined the IndieWeb, but I was always a bit scared of complexity to develop my own solution.

Read more

indiekit: Micropub-endpoint for static site generators

in 🔗 Links

A few days ago, I built my own publishing form on my blog to be able to create new posts on the go. It works great, but Micropub would be even better, because I could also use Micropub-compatible apps. Just today I found Indiekit, which is exactly what I am looking for: The immediate goal of this project is to provide a Micropub endpoint that can be hosted on a service like Heroku, configured via files stored on a GitHub repo, and save posts back to that repo for publishing with a static site generator such as Eleventy, Hugo or Jekyll.

Read more

Jan-Lukas Else