Can’t understand error in config.yaml

Run hugo --gc --minify -b 4 Error: “/home/runner/work/TTS/TTS/themes/hugo-theme-stack/config.yaml:146:1”: failed to unmarshal YAML: yaml: line 146: mapping values are not allowed in this contex

So I am trying, and failing, to get a theme installed on my blog. I have gotten through a few of the errors and were able to suss out what the issue was. The above one is the current one and I am having a time trying to figure out whats wrong.

The line called into question is:

cusdis:
               host: 
                   id:

These are left blank as I dont know what they want there and usually leaving something blank never impacted me before. What could the issue be? (By the way the spacing and alignement is not what is displaying here. I dont know why its putting all three right behind each other. But Cusdis is far left, host is next line and is five spaces to the right of the : as is id)

My config.yaml

@LyssasGaze

Look carefully at the error message.

Error: “/home/runner/work/TTS/TTS/themes/hugo-theme-stack/config.yaml:146:1”

It is not pointing to a problem with the config.yaml file in the root of your project.

> [6](https://github.com/LyssasGaze/TTS/runs/5962979836?check_suite_focus=true#step:8:6)ERROR 2022/04/10 18:37:03 render of "home" failed: "/home/runner/work/TTS/TTS/themes/hugo-theme-stack/layouts/_default/baseof.html:4:12": execute of template failed: template: index.html:4:12: executing "index.html" at <partial "head/head.html" .>: error calling partial: partial "head/head.html" not found
> 
> [7](https://github.com/LyssasGaze/TTS/runs/5962979836?check_suite_focus=true#step:8:7)Error: Error building site: failed to render pages: render of "page" failed: "/home/runner/work/TTS/TTS/themes/hugo-theme-stack/layouts/_default/baseof.html:4:12": execute of template failed: template: _default/single.html:4:12: executing "_default/single.html" at <partial "head/head.html" .>: error calling partial: partial "head/head.html" not found
> 
> [8](https://github.com/LyssasGaze/TTS/runs/5962979836?check_suite_focus=true#step:8:8)ERROR 2022/04/10 18:37:03 render of "section" failed: "/home/runner/work/TTS/TTS/themes/hugo-theme-stack/layouts/_default/baseof.html:4:12": execute of template failed: template: _default/list.html:4:12: executing "_default/list.html" at <partial "head/head.html" .>: error calling partial: partial "head/head.html" not found
> 
> [9](https://github.com/LyssasGaze/TTS/runs/5962979836?check_suite_focus=true#step:8:9)ERROR 2022/04/10 18:37:03 render of "taxonomy" failed: "/home/runner/work/TTS/TTS/themes/hugo-theme-stack/layouts/_default/baseof.html:4:12": execute of template failed: template: _default/list.html:4:12: executing "_default/list.html" at <partial "head/head.html" .>: error calling partial: partial "head/head.html" not found
> 
> [10](https://github.com/LyssasGaze/TTS/runs/5962979836?check_suite_focus=true#step:8:10)ERROR 2022/04/10 18:37:03 render of "taxonomy" failed: "/home/runner/work/TTS/TTS/themes/hugo-theme-stack/layouts/_default/baseof.html:4:12": execute of template failed: template: _default/list.html:4:12: executing "_default/list.html" at <partial "head/head.html" .>: error calling partial: partial "head/head.html" not found

Okay so I see where the issue was. I correct that line but now it’s not seeing things that should have been generated. I tried looking for that error it’s giving now but not seeing anything about this specific one.

Assuming you are using this theme…

https://github.com/CaiJimmy/hugo-theme-stack

Your local copy of theme is missing many directories.

Compare this:
https://github.com/LyssasGaze/TTS/tree/main/themes/hugo-theme-stack/layouts/partials

With this:
https://github.com/CaiJimmy/hugo-theme-stack/tree/master/layouts/partials

I feel exceedingly dumb. So if I bring those folders and the pagination html over or should resolve that?

Give it a try and see what happens.

Okay so through GitHub I uploaded the missing folders and their contents. Commîted the change and went to watch the work flow and it’s the same errror. I made sure that it’s the most up to date Hugo and using extended as the theme requires.

I have no idea what you are doing, but you are doing it wrong.

https://github.com/LyssasGaze/TTS/tree/main/themes/hugo-theme-stack/layouts/partials
… is still missing a bunch of directories.

I’m not sure if this is the issue or not. I’m using ionos deploy now to push workflows etc. I pushed the whole directory but it’s not making it to GitHub as the errors in the workflow won’t allow any changes. So I’m ready to nuke this repository and try again if need be :cold_face:

Have you ever used GitHub before?
Have you ever used Git from the command line?

I have but for small projects and it’s been a while lol

But I went through command line and force pushed those folders and now it looks like it all went through! Now it’s just a matter of changing some of the configurations but the theme is finally displaying!!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.