Skip to content

port to latest hugo or lektor

it seems a new hugo release broke research.torproject.org. when running under 0.65, ie. when using the template from tpo/tpa/status-site, we don't get styles or even a <body> tag. this can be seen in this job.

then if we use the latest build, it fails with this error:

Error: Error building site: process: readAndProcessContent: open /src/research/public/_index.html: no such file or directory

this can be reproduced locally with Docker like this:

docker run -it --rm --entrypoint=/bin/sh registry.gitlab.com/pages/hugo/hugo_extended

then:

apk add git
git clone --recursive https://gitlab.torproject.org/tpo/web/research.git
cd research
hugo

i worked around the problem by using an older image for now, but this should obviously be fixed in the long term...