lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
651 stars 363 forks source link

Failed to create static pages with custom css #357

Closed A-d-r-i closed 2 years ago

A-d-r-i commented 2 years ago

Describe the bug After adding parameter customCss=["css/custom.css"] in config/_default/params.toml, hugo -D command failed

To Reproduce

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):

A-d-r-i commented 2 years ago

All is good! Apparently I had incorrectly specified the access path to my .css file in params.toml. No more worries!