mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
@@ -34,7 +34,7 @@ To include the embedded template:
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
```
|
||||
|
||||
### Configure Disqus
|
||||
### Configuration {#configuration-disqus}
|
||||
|
||||
To use Hugo's Disqus template, first set up a single configuration value:
|
||||
|
||||
@@ -55,6 +55,15 @@ You can also set the following in the front matter for a given piece of content:
|
||||
- `disqus_title`
|
||||
- `disqus_url`
|
||||
|
||||
### Privacy {#privacy-disqus}
|
||||
|
||||
Adjust the relevant privacy settings in your site configuration.
|
||||
|
||||
{{< code-toggle config=privacy.disqus />}}
|
||||
|
||||
disable
|
||||
: (`bool`) Whether to disable the template. Default is `false`.
|
||||
|
||||
## Google Analytics
|
||||
|
||||
{{% note %}}
|
||||
@@ -76,7 +85,7 @@ To include the embedded template:
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
```
|
||||
|
||||
### Configure Google Analytics
|
||||
### Configuration {#configuration-google-analytics}
|
||||
|
||||
Provide your tracking ID in your configuration file:
|
||||
|
||||
@@ -87,6 +96,18 @@ id = "G-MEASUREMENT_ID"
|
||||
|
||||
To use this value in your own template, access the configured ID with `{{ site.Config.Services.GoogleAnalytics.ID }}`.
|
||||
|
||||
### Privacy {#privacy-google-analytics}
|
||||
|
||||
Adjust the relevant privacy settings in your site configuration.
|
||||
|
||||
{{< code-toggle config=privacy.googleAnalytics />}}
|
||||
|
||||
disable
|
||||
: (`bool`) Whether to disable the template. Default is `false`.
|
||||
|
||||
respectDoNotTrack
|
||||
: (`bool`) Whether to respect the browser's "do not track" setting. Default is `false`.
|
||||
|
||||
## Open Graph
|
||||
|
||||
{{% note %}}
|
||||
@@ -107,7 +128,7 @@ To include the embedded template:
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
```
|
||||
|
||||
### Configure Open Graph
|
||||
### Configuration {#configuration-open-graph}
|
||||
|
||||
Hugo's Open Graph template is configured using a mix of configuration settings and [front matter](/content-management/front-matter/) on individual pages.
|
||||
|
||||
@@ -187,7 +208,7 @@ To include the embedded template:
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
```
|
||||
|
||||
### Configure X (Twitter) Cards
|
||||
### Configuration {#configuration-x-cards}
|
||||
|
||||
Hugo's X (Twitter) Card template is configured using a mix of configuration settings and [front-matter](/content-management/front-matter/) values on individual pages.
|
||||
|
||||
|
Reference in New Issue
Block a user