Error while building website initially
C:\Users\Nirzaf\source\repos\hugo-quad\quadrate-tech>hugo server
Building sites … WARN 2019/10/25 14:23:25 Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
Total in 387 ms
Error: Error building site: failed to render pages: render of "home" failed: "C:\Users\Nirzaf\source\repos\hugo-quad\quadrate-tech\themes\hugo-universal-theme\layouts\index.html:3:10": execute of template failed: template: index.html:18:11: executing "index.html" at <partial "carousel.html" .>: error calling partial: "C:\Users\Nirzaf\source\repos\hugo-quad\quadrate-tech\themes\hugo-universal-theme\layouts\partials\carousel.html:3:10": execute of template failed: template: partials/carousel.html:3:10: executing "partials/carousel.html" at
Hello can you give to us more details? OS, Go version, Hugo version?
HI, I have the same error, on ubuntu 16.04 hugo version: v0.59.0-1DD0C69C linux/amd64 BuildDate: 2019-10-21T09:39:47Z, go version go1.6.2 linux/amd64. Thank you for help
I think this error becomes for this PR merged https://github.com/devcows/hugo-universal-theme/pull/212, and here is the hotfix: https://github.com/devcows/hugo-universal-theme/pull/237 @salim-b since you are the author from the merged PR can you take a look on my fix?
I think this error becomes for this PR merged #212
Well, #212 wasn't merged into master when this issue was opened (3 days ago)... :thinking:
Also the error occurs when processing partials/carousel.html which is unrelated to #212.
@salim-b since you are the author from the merged PR can you take a look on my fix?
I'll have a look.
@nirzaf From the error message you posted I'd suspect that you (accidentally?) deleted or renamed the folder data/carousel...
mmm, maybe is not related #212 xD I had an issue with an old site and I though it was the same error. Thanks and sorry @salim-b .
The bug I think comes from this line: https://github.com/devcows/hugo-universal-theme/blob/b724768834106a68906a50d27b98a7f51c6525db/layouts/partials/carousel.html#L3
mmm I think that you have an empty "data/carousel" folder, do you want to show a carousel? if you don't want there is an option:
[params.carousel]
enable = false
Ran into the same issue and after reviewing the comment above, I had to disable a different option:
[params.carouselHomepage]
enable = false
Ran into the same issue and after reviewing the comment above, I had to disable a different option:
[params.carouselHomepage] enable = false
I do the same but same error. So I had to comment below [params.features] enable = false [params.testimonials] enable = false [params.clients] enable = false