Closed waterlens closed 3 years ago
@waterlens
Can you please share the errors that you get?
@waterlens
Can you please share the errors that you get?
@Nizzlay
Yeah. I guess that might be a problem related to relevant path?
ERROR 2021/07/08 XX:XX:XX Rebuild failed:
ERROR 2021/07/08 XX:XX:XX TOCSS: failed to transform "scss/style.scss" (text/x-scss): SCSS processing failed: file "stdin", line 2, col 1: File to import not found or unreadable: colors/<no value>.
Yes, I have the same bug
TOCSS: failed to transform "scss/style.scss" (text/x-scss): SCSS processing failed: file "stdin", line 2, col 1: File to import not found or unreadable: colors/<no value>.
I found the problem.
{{ .Scratch.Set "colortheme" "white"}}
{{ if .Site.Params.Colortheme }}
{{ .Scratch.Set "colortheme" .Site.Params.Colortheme }}
{{ end }}
{{ $colortheme := .Scratch.Get "colortheme" }}
In the past, this block of code will set the default $colortheme
if no .Site.Params.Colortheme
, and we eventually use $colortheme
to reference a css.
But now in style.scss
site.Params.Colortheme
was used directly, and there is no default value if we don't set it in config.toml
.
@waterlens @daleige @Nizzlay Hi there
Really sorry for the inconvenience. I forget to set the default colortheme value so if you don't have colortheme
set in your config file, the build will fail.
This should be fixed by #88. The white theme is used by default. Check it out!
Sorry again and best regards!
Yeah, the problem has been solved.
because the new code added to
head.html
:hugo reports errors when I copy
head.html
from the themes directory to the project directory