Hugo Version 0.31.1 on Gitlab

I use Hugo version 0.31.1 on my computer. In the theme.toml have I have the entry min_version = “0.31.1”.

After the upload, I get the following error message:

Running with gitlab-runner 10.2.0 (0a75cdd1)
on docker-auto-scale (e11ae361)
Using Docker executor with image
Using docker image sha256:16fa044f8d71e00e84b1df17b63db360d4e8ba21350eb37d30863169977199a3 for predefined container…
Pulling docker image
Using docker image ID=sha256:506b0423b32ad590732f6eae7a578a89c7868077b8fbc60ce784e97a6820e8c0 for build container…
Running on runner-e11ae361-project-4854203-concurrent-0 via runner-e11ae361-srm-1512939261-26f8b46d…
Cloning repository…
Cloning into ‘/builds/joklein/hugo’…
Checking out 9df8feb9 as master…
Skipping Git submodules setup
$ hugo
ERROR 2017/12/10 20:56:01 Current theme does not support Hugo version 0.30.2. Minimum version required is 0.31.1
Started building sites …

Built site for language en:
0 draft content
0 future content
0 expired content
6 regular pages created
28 other pages created
0 non-page files copied
0 paginator pages created
6 tags created
3 categories created
total in 24 ms
ERROR: Job failed: exit code 255

Then I have set the theme.toml to min_Version 0.30.2. With this version, the page is created on Gitlab. Unfortunately, this page is displayed differently than on my computer.
On Gitlab the Page content is created with the content in content/ On my computer with the Hugo version 0.31.1 the list page is displayed as Home page.

As a third attempt I deleted the line min_version = “0.30.2”. Now the List page will be displayed on Gitlab.

Here my questions:

  1. How important is the line min_version = “x.x.x”?
  2. Is the Docker image too old?
  3. Why does not Hugo use version 0.31.1. the /content/ to display the home page?
  4. How can I solve this problem.
  5. How do I update Hugo in the future (new versions of Hugo)?

My repo is public

Thank you for the help

This is the behaviour for Hugo >= 0.19 (I think). You end up with two pages that point to the same place on disk, and it is a little bit random which one you end up with. Rename the to

The produces a list page and not a single page.

You have 2 options.

  1. Use a different Hugo Docker image on Gitlab that is more recent.

  2. Choose the Hugo version you need on Gitlab.

Upon closer inspection of your .gitlab-ci.yml you are using the latest Hugo at the Gitlab container registry and that is version 0.30.2

Hugo 0.31.1 does not exist in the Gitlab container registry yet:

The hugo/monachus image is also v. 0.30.2 v. 0.31.1 see here

Thank you for the help.