| 1 |
--- |
| 2 |
title: Configure services |
| 3 |
linkTitle: Services |
| 4 |
description: Configure embedded templates. |
| 5 |
categories: [] |
| 6 |
keywords: [] |
| 7 |
--- |
| 8 |
|
| 9 |
Hugo provides [embedded templates](g) to simplify site and content creation. Some of these templates are configurable. For example, the embedded Google Analytics template requires a Google tag ID. |
| 10 |
|
| 11 |
This is the default configuration: |
| 12 |
|
| 13 |
{{< code-toggle config=services />}} |
| 14 |
|
| 15 |
`disqus.shortname` |
| 16 |
: (`string`) The `shortname` used with the Disqus commenting system. See [details][disqus]. To access this value from a template: |
| 17 |
|
| 18 |
```go-html-template |
| 19 |
{{ .Site.Config.Services.Disqus.Shortname }} |
| 20 |
``` |
| 21 |
|
| 22 |
`googleAnalytics.id` |
| 23 |
: (`string`) The Google tag ID for Google Analytics 4 properties. See [details][google-analytics]. To access this value from a template: |
| 24 |
|
| 25 |
```go-html-template |
| 26 |
{{ .Site.Config.Services.GoogleAnalytics.ID }} |
| 27 |
``` |
| 28 |
|
| 29 |
`rss.limit` |
| 30 |
: (`int`) The maximum number of items to include in an RSS feed. Set to `-1` for no limit. Default is `-1`. See [details][rss]. To access this value from a template: |
| 31 |
|
| 32 |
```go-html-template |
| 33 |
{{ .Site.Config.Services.RSS.Limit }} |
| 34 |
``` |
| 35 |
|
| 36 |
`x.disableInlineCSS` |
| 37 |
: (`bool`) Whether to disable the inline CSS rendered by the embedded `x` shortode. See [details][privacy]. Default is `false`. To access this value from a template: |
| 38 |
|
| 39 |
```go-html-template |
| 40 |
{{ .Site.Config.Services.X.DisableInlineCSS }} |
| 41 |
``` |
| 42 |
|
| 43 |
[disqus]: /templates/embedded/#disqus |
| 44 |
[google-analytics]: /templates/embedded/#google-analytics |
| 45 |
[privacy]: /shortcodes/x/#privacy |
| 46 |
[rss]: /templates/rss/ |