mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Merge commit 'de0df119b504a91c9e1f442b07954f366ffb2932'
This commit is contained in:
@@ -82,7 +82,7 @@ Provide your tracking ID in your configuration file:
|
||||
|
||||
{{< code-toggle file=hugo >}}
|
||||
[services.googleAnalytics]
|
||||
ID = "G-MEASUREMENT_ID"
|
||||
id = "G-MEASUREMENT_ID"
|
||||
{{</ code-toggle >}}
|
||||
|
||||
To use this value in your own template, access the configured ID with `{{ site.Config.Services.GoogleAnalytics.ID }}`.
|
||||
|
@@ -199,11 +199,11 @@ Remember that the piped value becomes the final argument to the function or meth
|
||||
You can split a template action over two or more lines. For example, these are equivalent:
|
||||
|
||||
```go-html-template
|
||||
{{ $v := or .Site.Language.LanguageName .Site.Language.Lang }}
|
||||
{{ $v := or $arg1 $arg2 }}
|
||||
|
||||
{{ $v := or
|
||||
.Site.Language.LanguageName
|
||||
.Site.Language.Lang
|
||||
$arg1
|
||||
$arg2
|
||||
}}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user