Error deploying site due to faulty rendering of template

I’m brand new to Hugo and would appreciate any help + patience navigating this error while deploying my site. I am using the Maverick theme and the errors seem to come from the template being unable to access features from the theme folder.

The deployment error:

ERROR render of "section" failed: "/home/runner/work/xxx.github.io/xxx.github.io/themes/maverick/layouts/_default/list.html:8:7": execute of template failed: template: _default/list.html:8:7: executing "_default/list.html" at <partial "header.html" .>: error calling partial: "/home/runner/work/xxx.github.io/xxx.github.io/themes/maverick/layouts/partials/header.html:31:39": execute of template failed: template: partials/header.html:31:39: executing "partials/header.html" at <$currentPage.HasMenuCurrent>: wrong number of args for HasMenuCurrent: want 2 got 1

Your chances of getting help quickly here are much better if you post the relevant parts of your code. Even better, a link to a GitHub repository containing your project.

Alternatively, take a look at the last template mentioned in the error message and the function that is expecting more parameters than you pass to it.

The theme relies on settings in config.toml and brutally fails if these are missing.

start by copying that exampleConfigFile to your sites root - as suggested in the README - and adjust to your needs. the following entries seem to be mandatory:

  • at least one menu entry
  • a value for params.items