Config - theNewDynamic/huge GitHub Wiki
HUGE Config
HUGE takes its configuration settings through stand alone files of either yaml, toml or json language located in the _huge/config/ directory at the root of the Hugo project.
Settings are optional but highly recommanded. List of available files are as follow:
- styles
- scripts
- fonts
- media
- seo
Go Template in config
It is possible to add Go Template syntax to configuration files.
# _huge/config/seo.yaml
enable_follow: true
default_image: '{{ site.Home.Params.featured_image }}'
or
# _huge/config/seo.yaml
disable_jsonld: true
default_image: '{{ partial "func/GetDefaultImage" "GetDefaultImage" }}'
Limitation
- It can only work with basic types (string, boolean, integer).
- It cannot bear a dynamic context. If a context is really needed, the user should use a partial and pass anything available globally (like
site, but not.Page).
default_image: '{{ partial "func/GetDefaultImage" (site.GetPage "/blog") }}'