-
Notifications
You must be signed in to change notification settings - Fork 0
Config
Regis Philibert edited this page Dec 1, 2022
·
7 revisions
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
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" }}'
- 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") }}'
This is a HUGE WIP right now! Stay tune for more info as we push it to Alpha!