Configuration
-
For projects with minimal configuration or projects that do not need to behave differently in different environments, a single configuration file named
hugo.tomlin the root of the project is sufficient.
└── hugo.toml <-- site configuration
-
Depending on requirements, you may wish to organize your site configuration into subdirectories:
├── config/ <-- site configuration
│ └── _default/
│ └── hugo.toml
Default Configurations
-
hugo config --printZero >> config/_default/hugo.toml
TOML
-
Open tables :
[server] -
Close tables :
-
TOML tables do not require or allow explicit closing syntax.
-
A table implicitly closes when:
-
Another table header (
[something]or[something.sub]) appears, or -
The file ends.
-
-
Privacy
-
THE DEFAULT IS NO PRIVACY HAHAHHA.
-
All the tracking is enabled by default, and you can only disable or even know these things are enabled if you search through the whole documentation for it.
-
If this is not a crime, it should be a crime.
-
I asked ChatGPT about this and I got mad, so anyway....
-
-
Disqus .
-
Disqus .
-
"Pricing".
-
-
-
Vimeo .
-
Twitter .
-
Youtube .
-
privacyEnhanced-
Whether to block YouTube from storing information about visitors on your website unless the user plays the embedded video.
-
Default is
false.
-
-
-
Configurations used by me:
-
I only enabled youtube, with "privacy enhanced".
-
[privacy]
[privacy.disqus]
disable = true
[privacy.googleanalytics]
disable = true
respectdonottrack = true
[privacy.instagram]
disable = true
simple = true
[privacy.twitter]
disable = false
enablednt = false
simple = false
[privacy.vimeo]
disable = true
enablednt = true
simple = false
[privacy.x]
disable = true
enablednt = true
simple = true
[privacy.youtube]
disable = false
privacyenhanced = true
Renderer
-
-
The default used is GoldMark .
-
The config options need to be placed inside the
hugo.toml.
-
Translation
i18n
-
The
i18ndirectory contains translation tables for multilingual sites. -
details .