math.Counter
Syntax
math.Counter
Returns
uint64
The counter is global for both monolingual and multilingual sites, and its initial value for each build is 1.
{{ warnf "single.html called %d times" math.Counter }}
WARN  single.html called 1 times
WARN  single.html called 2 times
WARN  single.html called 3 times
Use this function to:
- Create unique warnings as shown above; the 
warnffunction suppresses duplicate messages - Create unique target paths for the 
resources.FromStringfunction where the target path is also the cache key