toha: bug - Error: Error building site: failed to render pages: render of "home" failed

Expected Behavior

Website should render

Current Behavior

Website failed to render

Possible Solution

Steps to Reproduce

  1. hugo new site ./ -f=yaml --force
  2. git init
  3. git submodule add https://github.com/hugo-toha/toha.git themes/toha
  4. hugo server -t toha -w

Detailed Description

hugo server -t toha -w
Start building sites … 
Built in 27 ms
Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:34:8: executing "index.html" at <partial "navigators/navbar.html" .>: error calling partial: "/tmp/testsite/themes/toha/layouts/partials/navigators/navbar.html:15:33": execute of template failed: template: partials/navigators/navbar.html:15:33: executing "partials/navigators/navbar.html" at <$mainLogo.MediaType.SubType>: nil pointer evaluating resource.Resource.MediaType

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 34 (16 by maintainers)

Most upvoted comments

I don’t have permission to merge your changes into my main branch.

@serverfriendsorg How I can give you permission to merge the MR. I don’t see any settings for that. I am not experienced with gitlab.

@hossainemruz Sorry for the late response. I was able to merge your MR by starting a new pipeline from the merge request. Thanks for your help, everything is now as it should be. 😃

To solve it I created a assets/images/site folders in the root directory and moved the images there. image