Closed A-d-r-i closed 2 years ago
Describe the bug After adding parameter customCss=["css/custom.css"] in config/_default/params.toml, hugo -D command failed
customCss=["css/custom.css"]
config/_default/params.toml
To Reproduce
assets/css/custom.css
ERROR AAAA/MM/DD HH:MM:SS render of "taxonomy" failed: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/_default/baseof.html:8:6": execute of template failed: template: _default/list.html:8:6: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/partials/head.html:85:31": execute of template failed: template: partials/head.html:85:31: executing "partials/head.html" at <resources>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource ERROR AAAA/MM/DD HH:MM:SS render of "taxonomy" failed: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/_default/baseof.html:8:6": execute of template failed: template: _default/list.html:8:6: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/partials/head.html:85:31": execute of template failed: template: partials/head.html:85:31: executing "partials/head.html" at <resources>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource ERROR AAAA/MM/DD HH:MM:SS render of "taxonomy" failed: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/_default/baseof.html:8:6": execute of template failed: template: _default/list.html:8:6: executing "_default/list.html" at <partial "head.html" .>: error calling partial: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/partials/head.html:85:31": execute of template failed: template: partials/head.html:85:31: executing "partials/head.html" at <resources>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource Error: Error building site: failed to render pages: render of "home" failed: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/_default/baseof.html:8:6": execute of template failed: template: index.html:8:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/PATH/TO/HUGO-SITE/themes/anatole/layouts/partials/head.html:85:31": execute of template failed: template: partials/head.html:85:31: executing "partials/head.html" at <resources>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource
Expected behavior Build static pages whitout error.
Desktop (please complete the following information):
hugo version
All is good! Apparently I had incorrectly specified the access path to my .css file in params.toml. No more worries!
params.toml
Describe the bug After adding parameter
customCss=["css/custom.css"]
inconfig/_default/params.toml
, hugo -D command failedTo Reproduce
assets/css/custom.css
in root of sitecustomCss=["css/custom.css"]
inconfig/_default/params.toml
Expected behavior Build static pages whitout error.
Desktop (please complete the following information):
hugo version
if unsure): 0.99