I have started implementing hugo modules following Hugo modules for “dummies”
- I got the latest go version after some go errors
- I did
hugo mod init newhugosite
- I added the theme as a module import in my config
- I ran
I got the following:
> hugo serve go get: added github.com/stephlocke/slamp v0.0.0-20220218190908-5bc6d9ba1e8e hugo: collected modules in 637 ms Start building sites … hugo v0.92.2+extended linux/amd64 BuildDate=unknown ERROR 2022/02/18 19:38:15 failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:4:6: executing "_default/single.html" at <partial "head/base.html" .>: error calling partial: execute of template failed: template: partials/head/base.html:20:3: executing "partials/head/base.html" at <partial "head/styles.html" .>: error calling partial: "/email@example.com/layouts/partials/head/styles.html:8:19": execute of template failed: template: partials/head/styles.html:8:19: executing "partials/head/styles.html" at <.Content>: error calling Content: TOCSS: failed to transform "custom.scss" (text/x-scss): SCSS processing failed: file "stdin", line 69, col 1: File to import not found or unreadable: vendor/rfs. Error: Error building site: TOCSS: failed to transform "custom.scss" (text/x-scss): SCSS processing failed: file "stdin", line 69, col 1: File to import not found or unreadable: vendor/rfs. Built in 52 ms
I suspect I’m missing some of the intricacies of working with SCSS in theme modules. I read Bootstrap SCSS Hugo Module - HUGO (gohugo.io) and looked at the associated repo and it didn’t clear things up.
In my theme assets dir I have a folder called
vendor/ that contains the file
What modifications do I need to make to my theme to allow it to complete the SCSS asset pipeline?