-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to change colors in config.toml #758
Comments
The site works without changing the color? The zero object warning is usually just a warning and shouldn't impact site rendering and all the warnings should have been fixed. Related issue: #728 The color change seems to work in my tests. Would be great, if you can show the config you are trying to use to change the colors. Some additional docs would be great. Related issue: #750 |
Yes
version = "0.17.0"
v0.69.2-EC9DCF30
Yes
Example: in the config.toml file I changed |
save some headaches |
@IvanTurgenev sidenote on that comment. Our use of fragments and partials seems to be suboptimal with the Hugo cache changes so might be a generally good thing to add to documented commands. |
@JoshuaKissel Cleaned up the comment to make it more readable. Github flavored markdown needs whitespace between the end of a comment declarated by Will try to recreate the issue locally. Thanks for the info. |
@JoshuaKissel Are you running with the extended version? This is necessary to rebuild the CSS assets, which would incorporate these styling changes. |
@stp-ip I don't believe so, is there a way to check that? Could you explain what the extended version is more? I'm still pretty new to this. |
You can run Hugo basically ships in 2 versions. One can't recompile specific assets such as CSS and JS and uses pre-compile ones including the pre-compiled colors (non extended) and the other can recompile the CSS including the colors. The Hugo extended version is available here as well: https://github.com/gohugoio/hugo/releases You would also currently need postcss-cli until this issue is merged and release, which is currently a bit delayed: #816 |
Was able to get this to work by following @stp-ip instructions. Download and install the extended version of Hugo, download newest version of Syna, install postcss-cli (if on windows follow the install process for npm then in powershell run Not sure if instructions like this are allowed - figured it would help others. |
Sure. Don't use windows myself. So that sounds good. The need for postcss-cli should be removed with #816 merged, but there is still a blocker as the test server is having issues. Closing this for now as it is working as you mentioned. |
Hi, I had the same issue. To solved just I installed postcss with |
Is this a BUG REPORT or FEATURE REQUEST?:
bug
What happened:
Attempting to change the color option in the config.tolm file. When I change and save the file I am given the error
.File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}
and the color does not change. Not sure what to wrap with if or with.
What you expected to happen:
I expected that changing the color code in config.toml would change the color in the site.
Environment:
The text was updated successfully, but these errors were encountered: