GitLab Pages only displays 404 error

Error description

On your local machine everything works fine with hugo server -D and in the pipeline of your gitlab-ci.yml the test stage passes, while the deploy stage first fails, is “fixed” by automatically being run a 2nd time?

Problem

All articles are drafts.

Solution

Change the header of your markdown articles so that they contain:

draft: false

See also