Skip to content

Theme not working without brand parameter being set #199

@WortPixel

Description

@WortPixel

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions