mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 12:54:44 -04:00
Add missing links to warnidf function
This commit is contained in:
parent
c9551d4337
commit
62df9bd733
@ -22,6 +22,8 @@ The `warnf` function evaluates the format string, then prints the result to the
|
||||
{{ warnf "The %q shortcode was unable to find %s. See %s" .Name $file .Position }}
|
||||
```
|
||||
|
||||
Use the [`warnidf`] function to allow optional suppression of specific warnings.
|
||||
|
||||
To prevent suppression of duplicate messages when using `warnf` for debugging, make each message unique with the [`math.Counter`] function. For example:
|
||||
|
||||
|
||||
@ -32,3 +34,5 @@ To prevent suppression of duplicate messages when using `warnf` for debugging, m
|
||||
```
|
||||
|
||||
[`math.Counter`]: /functions/math/counter/
|
||||
|
||||
[`warnidf`]: /functions/fmt/warnidf/
|
||||
|
@ -12,6 +12,7 @@ functions_fmt_logging:
|
||||
- /functions/fmt/errorf
|
||||
- /functions/fmt/erroridf
|
||||
- /functions/fmt/warnf
|
||||
- /functions/fmt/warnidf
|
||||
functions_images_no_filters:
|
||||
- /functions/images/filter
|
||||
- /functions/images/config
|
||||
|
Loading…
x
Reference in New Issue
Block a user