Over a year ago, I set up a Hugo site on GitLab using a StartCom cert. I haven’t done anything with it in a while, then I read that StartCom wasn’t trusted. I have a complicated setup, My site has a gitlab url, but I set it up to use a subdomain for another url. It looked that getting CloudFlare to work with the subdomain was going to be a mess, so I decided to just use the gitlab url for the domain and forware the subdomain to the gitla url. So I edited the config fil and it failed to build, Instead, I got this error:
Running on runner-e11ae361-project-1404626-concurrent-0 via runner-e11ae361-machine-1502343229-ef0d86ad-digital-ocean-2gb... Cloning repository... Cloning into '/builds/JohnBlood/st-isidores-keyboard'... Checking out d82f302b as master... Skipping Git submodules setup $ hugo Started building sites ... ERROR 2017/08/10 05:36:11 Error while rendering "page": template: theme/_default/single.html:1:3: executing "theme/_default/single.html" at <partial "head" .>: error calling partial: template: theme/partials/head.html:14:10: executing "theme/partials/head.html" at <.RSSlink>: can't evaluate field RSSlink in type *hugolib.PageOutput ERROR: Job failed: exit code 1
Here is a link to my site’s repo: https://gitlab.com/JohnBlood/st-isidores-keyboard. Any help would be apprecaited.
a few Hugo versions ago
.RSSlink was changed to
.RSSLink. Changing it in the
head.html template should fix the error in your posted log.
I finally got the chance to make the change and I’m still having trouble building the site. I got this error now:
Running with gitlab-runner 10.1.0-rc.1 (946e835b)
on docker-auto-scale (4e4528ca)
Using Docker executor with image publysher/hugo ...
Using docker image sha256:2e6119de0104746fff758bd5960f1ba919883bb4cce92bce29313e397e7528e6 for predefined container...
Pulling docker image publysher/hugo ...
Using docker image publysher/hugo ID=sha256:d92701ded90ca0ef6f8952ac0d4fe81eef3ae2f52bfe66f148ea7a457816a366 for build container...
Running on runner-4e4528ca-project-1404626-concurrent-0 via runner-4e4528ca-srm-1508193321-92f8d03f...
Cloning into '/builds/JohnBlood/st-isidores-keyboard'...
Checking out 7b0d63c4 as master...
Skipping Git submodules setup
Started building sites ...
ERROR 2017/10/16 22:38:13 Page's Now is deprecated and will be removed in Hugo 0.23. Use now (the template func).
Built site for language en:
0 draft content
0 future content
0 expired content
6 regular pages created
40 other pages created
0 non-page files copied
18 paginator pages created
10 tags created
6 categories created
total in 109 ms
ERROR: Job failed: exit code 1
Try to use Hugo 0.23 or higher.
.Now has been replaced by the template function
now. It’s likely that you’re using the date for the copyright in the footer.
I wonder if it is an error on Gitlab’s part. They have it set up so that you upload the main hugo site folder and use .gitlab-ci.yml to set it up. It looks like the example on their sample Hugo site is point to version 0.27.1, by my yml file doesn’t have a version number. Could that be the issue?
I’m not familiar with gitlab ci. But after looking at your repository it looks like you’re using an old version of the Icarus theme. My initial guess that the deprecated
.Now variable is used for the copyright in the footer partial has been confirmed.
.Now.Format "2006" with
.now.Year should help to prevent the error message (e.g. by upgrading the theme).
So tonight, I think I’ll update the theme and see if that works
I updated the footer files to reflect this, but it still fails.
I copied the footer code directly from the theme’s github repo and it built correctly.