# Error deploying site due to faulty rendering of template

**URL:** <https://discourse.gohugo.io/t/error-deploying-site-due-to-faulty-rendering-of-template/55914>\
**Category:** Using Themes\
**Created:** [September 14, 2025, 6:13pm UTC](https://discourse.gohugo.io/t/error-deploying-site-due-to-faulty-rendering-of-template/55914 "2025-09-14T18:13:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karnam](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@Karnam](https://discourse.gohugo.io/u/Karnam)\
**Post date:** [September 14, 2025, 6:13pm UTC](https://discourse.gohugo.io/t/error-deploying-site-due-to-faulty-rendering-of-template/55914/1 "2025-09-14T18:13:51Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![chrillek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/chrillek/32/19797_2.png) [@chrillek](https://discourse.gohugo.io/u/chrillek)\
**Post date:** [September 14, 2025, 6:21pm UTC](https://discourse.gohugo.io/t/error-deploying-site-due-to-faulty-rendering-of-template/55914/2 "2025-09-14T18:21:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![irkode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/irkode/32/26135_2.png) [@irkode](https://discourse.gohugo.io/u/irkode)\
**Post date:** [September 15, 2025, 6:28am UTC](https://discourse.gohugo.io/t/error-deploying-site-due-to-faulty-rendering-of-template/55914/3 "2025-09-15T06:28:37Z")

</div>

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

start by copying that [exampleConfigFile](https://github.com/canhtran/maverick/blob/main/exampleSite/config.toml) 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`
