diff options
Diffstat (limited to 'docs/content/en/functions/math/Counter.md')
-rw-r--r-- | docs/content/en/functions/math/Counter.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/en/functions/math/Counter.md b/docs/content/en/functions/math/Counter.md index 16456cec6..eec4df8b3 100644 --- a/docs/content/en/functions/math/Counter.md +++ b/docs/content/en/functions/math/Counter.md @@ -12,14 +12,14 @@ params: The counter is global for both monolingual and multilingual sites, and its initial value for each build is 1. -```go-html-template -{{ warnf "single.html called %d times" math.Counter }} +```go-html-template {file="layouts/page.html"} +{{ warnf "page.html called %d times" math.Counter }} ``` -```sh -WARN single.html called 1 times -WARN single.html called 2 times -WARN single.html called 3 times +```text +WARN page.html called 1 times +WARN page.html called 2 times +WARN page.html called 3 times ``` Use this function to: |