Blog migration.

Posted by GNUtoo on the 25 October 2026 at 0h00 under the LAL-1.3 OR CC-BY-3.0 OR CC-BY-4.0 license(s).

A lot of work was done to migrate from WordPress to Haunt.

The work was nearly finished, but since not a lot happened lately in Replicant, the work was put on hold.

But at the end, I took time to finish it, as I am supposed to still do some maintenance with WordPress, but I didn't.

More precisely, we still have many comments many years later. I'm unsure if there are comments that are still relevant but mails about it arrives in my mail box and I'm supposed to address them somehow.

Apart from that the WordPress instance was updated by the provider of the instance and I could also have disabled comments in WordPress but I think that at the end of the day, finishing the migration was better.

I also wrote most of this blog post at a time where I didn't know there was so much to do in GNU Boot. I still kept most of it as-is as it contains valuable information for people wanting to consider migrating (from WordPress) to Haunt.

Previous situation with the blog

At the beginning the WordPress instance provided by OSUOSL was sufficient, even if it wasn't always practical for the people writing the articles:

The main change between then and now is that at the time there was probably no review of articles before they were published (at least I don't recall having to deal with that).

But since a while, at least for important announcements, articles are reviewed before being published by the member(s) of the Replicant steering committee.

So we basically needed to be able to exchange blog posts through mail, before the publication, and ideally to be able to modify it locally (ideally offline as well) and send modified versions through mail.

Since there is less activity in Replicant nowadays, the review of articles is less a concern, but the new blog makes it easier to archive the blog. In addition, Guix is used in making the blog, so that makes it easier to keep it working in the future.

See the Adventures on the quest for long-term reproducible deployment Guix blog post by Ludovic Courtès for more details.

How we chose Haunt

GNU Boot (a project I'm involved in and where I now spend most of my time) had the plan to migrate to Haunt, a static website generator that have everything done in code.

We chose Haunt in GNU Boot because it supported both CommonMark and Texinfo file formats, and also because everything could be done with code instead of configuration files or having hardcoded structures or behavior.

Markdown itself is not really a format. Instead it is the idea of enabling "to write using an easy-to-read and easy-to-write plain text format". So there are many variations of Markdown, all with incompatibilities between them.

And CommonMark is a variation that is very well specified and it has practically become a standard that many (but not all) projects follow.

So that looked good as GNU Boot was currently using a custom Markdown format, and even required a static website generator (that is now called lbssg) written in fragile shell scripts and that wasn't packaged anywhere. Though it uses Pandoc which itself is packaged almost everywhere.

As for Texinfo, it is the format used for used for writing most GNU manuals, and we wanted a GNU manual for GNU Boot.

As for using a programming language directly, this reassured me as there were lot of unknowns in the migration of the GNU Boot website to Haunt.

The programming language that needs to be used with Haunt is Scheme (a variant of Lisp). It is a very powerful programming language that is also easy to learn for beginners (though it is harder for non-beginners though as it often requires to think differently than more classical programming languages).

The downside is that it has fewer libraries than python, and the language and/or some of the libraries are less well maintained than python (where a lot more people contribute). More specifically Haunt uses Guile, which is a Scheme implementation that is used by Guix and many GNU packages.

Since Replicant wanted to move to a static website generator, I also did work to do that in Replicant as well, especially because the Replicant situation was easier so it enabled me to experiment with Haunt more easily than with GNU Boot, but also because there too I wanted something flexible enough to avoid unsolvable issues. So both projects benefited from that work.

I also evaluated other static website generators:

Note that I didn't evaluate Jekyll as at the time I didn't know it was packaged in most distributions, including Guix, PureOS and Trisquel. It was broken in Parabola at the time, this seems fixed now, though I didn't manage to build a website with it due to dependencies that are always missing. I've tried it with various websites under Parabola like the reproducible-builds website, the Ruby on Rails website, etc. It is written in Ruby.

I also didn't evaluate how much maintenance would any of these solutions require, but in the case of Haunt, the maintenance is expected to be relatively low. In any case since Haunt was the way to go for GNU Boot, it also enabled to share work and to actually get things done in Replicant as well.

How we did the migration

First I had to write code that would download the WordPress articles and convert them in CommonMark, the Markdown format used by Haunt.

I wrote the code that converted the WordPress articles in CommonMark in python because the BeautifulSoup and the python html2text libraries enabled me to do it quickly. Writing it in scheme instead would take more time and would not really bring benefits (beside learning scheme) as we would probably get rid of that code once the migration is complete. Though we still needed robust code until then.

Once done I could start experimenting with Haunt. Though it didn't work out of the box with the data we had, so I had to do hacks to make it work.

The first issue I found is that I extracted the articles publication dates from the HTML, and Guile, the scheme implementation that Haunt uses, didn't support the date format used by WordPress. At the end I got rid of the issue by adding that date format in Guile and by using Guix to make Haunt use a patched Guile until the patch made it upstream.

I then realized that we didn't have proper licensing for the articles and comments for most of the blog posts. So I asked all blog post authors to license their articles and comments under free licenses, and they all agreed. We however decided not to try to contact all other authors of comments, and so to not re-publish the comments.

Though as part of this work I also re-archived all the blog posts to web.archive.org and also verified that they were all available there, so comments won't go away. We also asked OSUOSL to also make the WordPress instance available at wordpress.replicant.us and we will try to contact them again to see if it can be made read-only.

During all that work I also wrote a script to convert back the CommonMark articles to the HTML subset used by WordPress. This enabled to already start sharing blog posts through mail without having to wait for the new blog to be ready. In fact we have been using this that since the "Replicant status and report of the 37C3 and FOSDEM 2024 conferences." article of March 2024.

To finish the migration I then needed to tackle remaining issues:

I then contacted OSUOSL to make the old WordPress blog accessible on wordpress.replicant.us.

Then there were still leftovers that were fixed last week, like broken links, missing pictures, etc.

There are some things that were not fixed though. For instance the CSS could be improved (by adding margins, having the pictures displayed as a gallery, etc), but it's probably better to publish now than never as the situation is not that bad as-is.

CSS

One of the big limitations of this migration is that we reused the same CSS we used in our WordPress blog. It is free software (it is released under the GPLv2 or later), so we could simply copy it in. However it is 2291 lines long, and a lot of it is specific to WordPress, so it is not ideal.

So if for some reasons this CSS is modified again, we will probably end up removing some parts that are not needed along the way, but the CSS is 2291 lines long, and so it's more likely that this will never be fully fixed.

Lack of HTML support

While migrating to Haunt, we also found other issues, but they mainly affect GNU Boot:

Dependencies packaging

Another limitation is that when I started working on that, while Haunt was not packaged in a lot of distributions, it was in Guix, and Guix itself was packaged in Parabola, PureOS and Trisquel.

However Guix was available in Debian and other distributions based on Debian as well as Alpine, Nix, and openSUSE Tumbleweed. Though it was not packaged on Fedora and it had usability issues when used in combination with SELinux.

Nowadays the situation has been inversed: Haunt has been packaged in the next Debian version, so we could probably have in in PureOS or Trisquel one day. And the Guix package has been removed from Debian, so this complicates things as Guix might also be dropped from PureOS and Trisquel as well as from all other distributions based on Debian. So now I'm now trying to keep Guix packaged in rolling releases.

The reason behind the removal is related to security: Guix had several security issues at the time (September 2025, June 2025, October 2024, March 2024) that enabled an attacker that already executed code on a machine, to get root access on this machine. Additional security issue(s) were found and fixed since that time.

On Guix side, things were pretty good as fixes were released along with in depth explanations and code to test if the vulnerabilities are present. Users could get fixes simply by updating Guix.

Guix also went as far as re-architecturing part of Guix to enable to install Guix in a way that avoids most future vulnerabilities, but that requires to do a migration that changes the permissions of a lot of files, so it can take a bit of time, so most distributions that still have a guix package probably still run the guix-daemon as root.

The real issue here is that Guix is a rolling release distribution, and for distributions like Debian who packaged Guix, things were not fine at all as Guix didn't backport any of the fixes to the latest release (which was in December 2022), and over time the newer fixes were harder and harder to backport, up to the point where the Debian package maintainer decided to stop maintaining the Guix package.

I tried to help avoid the issue but I failed because I didn't find enough time to really do a good job at backporting the patches, and my call for help didn't manage to attract enough people to fix issues, despite the fact that this will most likely create very serious issues later on in Guix.

For instance as I understand, the Guix Continuous Integration tests will most likely stop working at some point because since the Guix migration to Codeberg it now depends on the availability of the Guix package in distributions that provide docker images.

This might also slow down the adoption of Guix as before it was possible to install it in very few commands on some distributions (sudo apt install guix && guix pull) and then use it either to install software, make something reproducible with guix time-machine and guix shell, etc.

Note that once installed, the Guix manual has instructions to update the Guix daemon and get rid of any security issues.

Alternatively, it is also possible to install Guix manually on top of an existing distribution, though doing that is not always very convenient, and can also be risky as one needs to make sure to verify signatures before installing foreign software, and not everybody do that.

The biggest downside is that using Guix brings more maintenance to users, as the first time they need to update it to have recent packages (this can take a lot of time) and then they also need to do security updates when issues are found and fixed in Guix itself.

So the situation wasn't ideal but it wasn't that bad either, and it could be improved by helping Guix backport security fixes to make sure Guix stays packaged.

And Guix was (and is still) also used behind the scenes in Replicant: a Guix package is used to run the IRC bridge, and in the past it was also used to workaround an issue in a tool required to build Replicant.

Comments

You can view replies on the Replicant mailing list, in the New blog post: Blog migration. thread.

If you also want to comment on this blog post, you can simply reply to the New blog post: Blog migration. thread.

If for some reasons you can't reply to this thread or you don't know how to do it, simply write a mail to the mailing list instead.

It is easier for everybody if you subscribe to the mailing list to do that: if you don't your mail will probably still reach the mailing list but it will require a moderator to approve it so it can take time. See the CommunityAndContact page on the Replicant wiki for how to subscribe