Configure services
Configure embedded templates.
Hugo provides embedded templates to simplify site and content creation. Some of these templates are configurable. For example, the embedded Google Analytics template requires a Google tag ID.
This is the default configuration:
services:
disqus:
shortname: ''
googleAnalytics:
id: ''
instagram:
accessToken: ''
disableInlineCSS: false
rss:
limit: -1
twitter:
disableInlineCSS: false
x:
disableInlineCSS: false
[services]
[services.disqus]
shortname = ''
[services.googleAnalytics]
id = ''
[services.instagram]
accessToken = ''
disableInlineCSS = false
[services.rss]
limit = -1
[services.twitter]
disableInlineCSS = false
[services.x]
disableInlineCSS = false
{
"services": {
"disqus": {
"shortname": ""
},
"googleAnalytics": {
"id": ""
},
"instagram": {
"accessToken": "",
"disableInlineCSS": false
},
"rss": {
"limit": -1
},
"twitter": {
"disableInlineCSS": false
},
"x": {
"disableInlineCSS": false
}
}
}
- disqus.shortname
- (
string) Theshortnameused with the Disqus commenting system. See details. To access this value from a template:{{ .Site.Config.Services.Disqus.Shortname }} - googleAnalytics.id
- (
string) The Google tag ID for Google Analytics 4 properties. See details. To access this value from a template:{{ .Site.Config.Services.GoogleAnalytics.ID }} - instagram.accessToken
- (
string) Do not use. Deprecated in v0.123.0. The embeddedinstagramshortcode no longer uses this setting. - instagram.disableInlineCSS
- (
bool) Do not use. Deprecated in v0.123.0. The embeddedinstagramshortcode no longer uses this setting. - rss.limit
- (
int) The maximum number of items to include in an RSS feed. Set to-1for no limit. Default is-1. See details. To access this value from a template:{{ .Site.Config.Services.RSS.Limit }} - twitter.disableInlineCSS
- (
bool) Do not use. Deprecated in v0.141.0. Use thexshortcode instead. - x.disableInlineCSS
- (
bool) Whether to disable the inline CSS rendered by the embeddedxshortode. See details. Default isfalse. To access this value from a template:{{ .Site.Config.Services.X.DisableInlineCSS }}
Last updated:
March 6, 2025
:
content: Replace calls to the code shortcode with fenced code blocks (fd628be6e)
Improve this page