question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting the themeVariant in config.toml does not have any effect

See original GitHub issue

Hi,

for me setting the themeVariant in the config.toml does not have any effect. Im always seeing the blue default theme.

My config.toml:

DefaultContentLanguage = "en"
theme = "docdock"
themeVariant = "gray"

im running hugo 0.24.1 Hugo Static Site Generator v0.24.1 darwin/amd64 BuildDate: 2017-06-26T09:33:45+02:00

Any suggestions on what I’m doing wrong are highly appreciated.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vjeantetcommented, Jul 6, 2017

can you try to insert [params] before your themeVariant

DefaultContentLanguage = "en"
theme = "docdock"
[params]
themeVariant = "gray"
0reactions
RobKraftcommented, Nov 5, 2021

Adding [params] before themeVariant fixed it for me. Wow, wasted 2 hours on this. For clarification for others, the file to change this in is the config.toml that is in the root of your site, not one in any of the themes subfolders.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced configuration - GitLab Documentation
To do this, you modify a file called config.toml , which uses the TOML format. GitLab Runner does not require a restart when...
Read more >
Theme color configuration not working - support - HUGO
My problem is that changing primaryColor in config.toml has no effect on the generated CSS file public/assets/css/devresume.min.[.
Read more >
Configuration :: Documentation for Hugo Learn Theme
On top of Hugo global configuration, Hugo-theme-learn lets you define the following parameters in your config.toml (here, values are default).
Read more >
Appendix A. Configuration Options - GitLab
This option has no effect if the source is a file. If false (the default) then the target will be a symbolic link...
Read more >
Using the config.toml File - H2O.ai Documentation
If an environment variable is set, the value in the config.toml for ... this option has no effect, unless worker_remote_processors=1 when it ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found