mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user