[Replicant] New blog post: Blog migration.

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Sun Oct 25 22:00:49 UTC 2026


author: GNUtoo
email: replicant at osuosl.org
date: 2026-10-25T00:00:00+00:00
title: Blog migration.
licenses: LAL-1.3 OR CC-BY-3.0 OR CC-BY-4.0
---

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](https://osuosl.org/) was sufficient, even if it wasn't always
practical for the people writing the articles:

* Administrating the WordPress blog, replying to comments and writing
  articles required to run JavaScript that was most likely free
  software but not under the user control. Viewing the articles however
  didn't and still don't require any JavaScript. Viewing the articles
  even works fine with the Tor Browser with JavaScript completely
  disabled.

* It was not always easy to control the article formatting (where to put
  paragraphs, pictures, etc), especially when going back and forth
  between the graphical interface and HTML, but that has improved over
  time up to the point where we consider this issue to be completely
  fixed.

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](https://guix.gnu.org/en/blog/2024/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](https://gnu.org/software/gnuboot) (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](https://dthompson.us/projects/haunt.html) in GNU Boot
because it supported both [CommonMark](https://commonmark.org) and
[Texinfo](https://www.gnu.org/software/texinfo/) file formats, and also
because everything could be done with code instead of configuration
files or having hardcoded structures or behavior.

[Markdown](https://en.wikipedia.org/wiki/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](https://libreboot.org/docs/sitegen/)) written in fragile shell
scripts and that wasn't packaged anywhere. Though it uses
[Pandoc](https://pandoc.org) which itself is packaged almost everywhere.

As for Texinfo, it is the format used for used for writing most [GNU
manuals](https://gnu.org/manual/), 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](https://www.gnu.org/software/guile/), which is a Scheme
implementation that is used by [Guix](https://guix.gnu.org) 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:

* [Pelican](https://blog.getpelican.com/) is packaged in most
  distributions, and I previously used it. It can be configured in
  python, which is a language most people know, and I previously
  managed to make it do what I wanted, like [generate a website from a
  kind of database](https://git.sr.ht/~gnutoo/hardware_list), but then,
  to do that I departed too much from the ways things are supposed to
  be done, and so the integration with a theme didn't really work out.

* [Hugo](https://gohugo.io/) is also a famous static website generator
  that is packaged in most distributions, and it can be configured with
  go. Go is relatively easy to learn, and Hugo is known to be really
  fast, and it also has a lot of libraries that can help, including an
  exporter from WordPress. However it is not packaged in Guix (so it is
  harder to make the website deployment reproducible) and using the
  official go implementation also brings some [privacy
  issues](https://sourcehut.org/blog/2023-01-09-gomodulemirror/#background)
  for the people who work on the website. Readers of the website are
  unaffected though.

Note that I didn't evaluate [Jekyll](https://jekyllrb.com/) 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](https://www.crummy.com/software/BeautifulSoup/bs4/) and
the python [html2text](https://github.com/Alir3z4/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](http://gitweb.git.savannah.gnu.org/gitweb/?p=guile.git;a=commit;h=bc2c612b89d3c4e7ef017a417af25b50f92fccee).

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](https://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:

* We had a way to search in the articles before. So instead of
  implementing search with something like [Xapian](https://xapian.org/)
  and the [Guile bindings for
  Xapian](https://guile-xapian.systemreboot.net), I ended up adding a
  page in the new blog that explains how to download the blog and
  search in articles. This was easier to implement and more empowering
  for users that could reuse the skills with any other static websites
  stored in git repositories.

* Before, people were able to comment on the blog posts, and the blog
  posts were also posted to the mailing list (WordPress was configured
  to do that once a post was published). To make something similar we
  will at first manually post the CommonMark file to the mailing list,
  and once done we will modify the new blog post to point users to the
  mailing lists thread for commenting on it. While this might look a
  bit crude, in the past we didn't really do a good job with moderating
  comments in WordPress. However the situation with responses on the
  mailing list has always been order of magnitude better. And things
  can still be improved later on, for instance by trying to better
  integrate the new blog and the mailing list in some ways.

* We also needed to make sure that the new blog didn't look horrible on
  high DPI screens. So I also did a fix and Joonas Kylmälä tested it.

I then contacted OSUOSL to make the old WordPress blog accessible on
[wordpress.replicant.us](https://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:

* By default we can't use HTML inside the CommonMark files, even if the
  CommonMark standard allows that. And digging into the issue also
  enabled us to understand that the guile-commonmark library is
  somewhat unmaintained as [patches to fix
  that](https://github.com/OrangeShark/guile-commonmark/pull/23) were
  sent to the project but not reviewed since October 2024.

* The CommonMark standard doesn't support tables, and we ended up
  finding this issue precisely because we have tables in the GNU Boot
  website.

  Though at the end, in GNU Boot we simply decided that there were more
  readable ways than HTML or Markdown tables to store information to
  produce tables (like the format used by [GNU
  Recutils](https://www.gnu.org/software/recutils/)). So some of the
  pages with tables will then be generated from information stored in
  the format used by the GNU Recutils.

  Part of this work is already upstream in guile-dsv, but this isn't in
  GNU Boot yet as the focus is now to make all these changes easy to
  review. Part of the work to make it easier to review is already
  upstream in [guile-dsv](https://github.com/artyom-poptsov/guile-dsv)
  though.

Dependencies packaging
======================

Another limitation is that when I started working on that, while [Haunt
was not packaged in a lot of
distributions](https://repology.org/project/haunt/versions), 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](https://en.wikipedia.org/wiki/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](https://lwn.net/Articles/1035491/), 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](https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerability-2025-2/),
[June
2025](https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/),
[October
2024](https://guix.gnu.org/en/blog/2024/build-user-takeover-vulnerability/),
[March
2024](https://guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297/))
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](https://hpc.guix.info/blog/2025/03/build-daemon-drops-its-privileges/)
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](https://en.wikipedia.org/wiki/Continuous_integration)
tests will most likely stop working at some point because since the
[Guix migration to
Codeberg](https://guix.gnu.org/en/blog/2025/migrating-to-codeberg/) it
now depends on the availability of the Guix package in distributions
that provide [docker
images](https://en.wikipedia.org/wiki/Docker_(software)).

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](https://guix.gnu.org/manual/devel/en/html_node/Upgrading-Guix.html#index-upgrading-the-Guix-daemon_002c-on-a-foreign-distro)
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](https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-pull.html)
to have recent packages (this can take a lot of time) and then they
also need to [do security
updates](https://guix.gnu.org/manual/devel/en/html_node/Upgrading-Guix.html)
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](https://codeberg.org/guix/guix/pulls/11832) 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](https://git.replicant.us/infrastructure/matterbridge/2), and in
the past it was also used to [workaround an
issue](https://download.replicant.us/build-tools/repo/07-02-2022/) in a
tool required to build Replicant.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20261025/81d828f7/attachment.sig>


More information about the Replicant mailing list