Facing error while setting up LoveIt theme

Hello,
I was trying to setup LoveIt theme. I followed the Hugo documentation as it is, but i am facing some errors when i am try to host the site.

$ hugo server
Error: html/template:_markup/render-codeblock-goat.html:6:17: no such template "_default/_markup/render-codeblock.html"

Here i can see that the render-codeblock.html file is present but at a different location.

Please help me fix this issue.

1 Like

According to the theme docs v0.3.0 is recommended and should be used with hugo up to v0.145

the master seems to be work in progress…

Remark: I just checked if it builds β†’ did not check the resulting pages

To be on the safe (stable) side use LoveIt 0.3.X with hugo v0.145.0

build using LoveIt master:

hugo v0.147.8 β†’ fails with your error
hugo v0.145.0 β†’ success

LogFiles master
### hugo 0.147.8

Start building sites …
hugo v0.147.8-10da2bd765d227761641f94d713d094e88b920ae+extended windows/amd64 BuildDate=2025-06-07T12:59:52Z VendorInfo=gohugoio

Total in 60 ms
Error: error building site: html/template:_markup/render-codeblock-mermaid.html:6:17: no such template "_default/_markup/render-codeblock.html"

### hugo 0.145.0

Start building sites …
hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended windows/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio


                   | EN
-------------------+-----
  Pages            |  8
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  0
  Processed images |  0
  Aliases          |  0
  Cleaned          |  0

Total in 98 ms

switch to tag v0.3.0 using git checkout v0.3.0

hugo v0.147.8 β†’ success
hugo v0.145.0 β†’ success

Logfiles v0.3.0
### hugo 0.147.8

Start building sites …
hugo v0.147.8-10da2bd765d227761641f94d713d094e88b920ae+extended windows/amd64 BuildDate=2025-06-07T12:59:52Z VendorInfo=gohugoio


                  β”‚ EN
──────────────────┼────
 Pages            β”‚  8
 Paginator pages  β”‚  0
 Non-page files   β”‚  0
 Static files     β”‚ 73
 Processed images β”‚  0
 Aliases          β”‚  0
 Cleaned          β”‚  0

Total in 90 ms

### hugo 0.145.0

Start building sites …
hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended windows/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio


                   | EN
-------------------+-----
  Pages            |  8
  Paginator pages  |  0
  Non-page files   |  0
  Static files     | 73
  Processed images |  0
  Aliases          |  0
  Cleaned          |  0

Total in 379 ms```

the version table in the readme is not consistent with the build experience, but you’ll have to discuss this with with the LoveIt author

It worked changed the version to v0.145.0. Thank you.

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