Browse Docs

Configure Hugo Icons Module

Learn how to configure Hugo Icons Module.

Donate

Become a backer or sponsor to support our work.

Sponsors

Site Configuration

params.icons.throw_on_error

NameContextTypeRequiredDefaultSinceExample
params.icons.throw_on_error-boolean-true--

When true, throw an error instead of a warnging if icon not found.

Site Configuration Example

hugo.yaml

1params:
2  icons:
3    throw_on_error: true

hugo.toml

1[params]
2  [params.icons]
3    throw_on_error = true

hugo.json

1{
2   "params": {
3      "icons": {
4         "throw_on_error": true
5      }
6   }
7}