How to set themes variables inside root configuration?

Hello,

I am currently using the hugo-material-docs theme. But in order to prevent further theme modifications in the git tree, I don’t want to modify the themes/hugo-material-docs/config.toml file. Instead I want to set all these parameters right into my config.yaml file.

The current themes/hugo-material-docs/config.toml file is looking like the following, and I want to tune all these variables just in my YAML config file.

name = "Material Docs"
license = "MIT"
licenselink = "https://github.com/digitalcraftsman/hugo-material-docs/blob/master/LICENSE.md"
description = "A material design theme for documentations."
homepage = "https://github.com/digitalcraftsman/hugo-material-docs"
tags = ["material", "documentation", "docs", "google analytics", "responsive"]
features = ["", ""]
min_version = 0.15

[author]
  name = "Digitalcraftsman"
  homepage = "https://github.com/digitalcraftsman"

# If porting an existing theme
[original]
  name = "Martin Donath"
  homepage = "http://struct.cc/"
  repo = "https://github.com/squidfunk/mkdocs-material"

Thank you by advance.

1 Like