Learn how to install the Hugo icons module.
Become a backer or sponsor to support our work.
To use the icons module, you’ll need to import the corresponding icons vendors first, take Bootstrap icons and Font Awesome icons as an example.
hugo.yaml
1module:
2 imports:
3 - path: github.com/hugomods/icons/vendors/bootstrap
4 - path: github.com/hugomods/icons/vendors/font-awesome
hugo.toml
1[module]
2 [[module.imports]]
3 path = 'github.com/hugomods/icons/vendors/bootstrap'
4 [[module.imports]]
5 path = 'github.com/hugomods/icons/vendors/font-awesome'
hugo.json
1{
2 "module": {
3 "imports": [
4 {
5 "path": "github.com/hugomods/icons/vendors/bootstrap"
6 },
7 {
8 "path": "github.com/hugomods/icons/vendors/font-awesome"
9 }
10 ]
11 }
12}