Skip to content
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

Theme not working without brand parameter being set #199

Open
WortPixel opened this issue Oct 5, 2024 · 1 comment
Open

Theme not working without brand parameter being set #199

WortPixel opened this issue Oct 5, 2024 · 1 comment

Comments

@WortPixel
Copy link

When trying to follow the installation instructions from the README the theme won't work unless the parameter brand is set. Not setting it results in an error pointing to the partials/head/meta.html, where $.Site.Params.brand is called without a default value.

Tested with hugo v0.135.0.

Suggested solutions:

  • Adapt README.md to include hint to set brand parameter. Meanwhile adding a hint, that hugo nowadays calls the config hugo.toml instead of config.toml might also be helpful for some users.
# hugo.toml
[params]
    brand = 'MyBrand'
  • Add default value handling to the given position in the meta.html.

Thanks for the theme!

@ShyVictor
Copy link

Worked on Windows, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants