Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,20 +3,17 @@ title: Config
description: Returns a subset of the site configuration.
categories: []
keywords: []
action:
related: []
returnType: page.SiteConfig
signatures: [SITE.Config]
toc: true
params:
functions_and_methods:
returnType: page.SiteConfig
signatures: [SITE.Config]
---
The `Config` method on a `Site` object provides access to a subset of the site configuration, specifically the `services` and `privacy` keys.
## Services
These are the default service settings, typically used by Hugo's built-in templates and shortcodes.
{{< code-toggle config=services />}}
See [configure services](/configuration/services).
For example, to use Hugo's built-in Google Analytics template you must add a [Google tag ID]:
@@ -37,9 +34,7 @@ You must capitalize each identifier as shown above.
## Privacy
These are the default privacy settings, typically used by Hugo's built-in templates and shortcodes:
{{< code-toggle config=privacy />}}
See [configure privacy](/configuration/privacy).
For example, to disable usage of the built-in YouTube shortcode: