zjedi / hugo-scroll

Clean, responsive, single-page Hugo website theme.
https://themes.gohugo.io/hugo-scroll/
MIT License
279 stars 199 forks source link

Error render of page failed. #163

Closed paulo-roger closed 11 months ago

paulo-roger commented 11 months ago

Running

git clone https://github.com/zjedi/hugo-scroll.git hugo-scroll
cd hugo-scroll
hugo server --source=exampleSite --themesDir=../..

Returns this error:

ERROR render of "page" failed: "/home/paulor/Git/temp/hugo-scroll/layouts/_default/baseof.html:3:6": execute of template failed: template: _default/single.html:3:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/paulor/Git/temp/hugo-scroll/layouts/partials/head.html:29:124": execute of template failed: template: partials/head.html:29:124: executing "partials/head.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/x-scss" and "text/css"
ERROR render of "home" failed: "/home/paulor/Git/temp/hugo-scroll/layouts/_default/baseof.html:3:6": execute of template failed: template: index.html:3:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/home/paulor/Git/temp/hugo-scroll/layouts/partials/head.html:29:124": execute of template failed: template: partials/head.html:29:124: executing "partials/head.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/x-scss" and "text/css"
ERROR TOCSS: failed to transform "css/_index.scss" (text/x-scss). Check your Hugo installation; you need the extended version to build SCSS/SASS with transpiler set to 'libsass'.: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
Built in 42 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/home/paulor/Git/temp/hugo-scroll/layouts/_default/baseof.html:3:6": execute of template failed: template: _default/single.html:3:6: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/paulor/Git/temp/hugo-scroll/layouts/partials/head.html:29:124": execute of template failed: template: partials/head.html:29:124: executing "partials/head.html" at <resources.Concat>: error calling Concat: resources in Concat must be of the same Media Type, got "text/x-scss" and "text/css"

Version:

hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740 linux/amd64 BuildDate=2023-12-08T08:47:45Z VendorInfo=gohugoio

theapiarist commented 11 months ago

The clue is in the error ... you need the extended version of hugo. See https://gohugo.io/installation/linux/ . Most package managers appear to install the extended version these days.

$ hugo version will then generate something like this: hugo v0.121.1-00b46fed8e47f7bb0a85d7cfc2d9f1356379b740+extended darwin/arm64 BuildDate=2023-12-08T08:47:45Z VendorInfo=brew