A while back, I shared my method of using an SVG icon system in Hugo. Using an inline SVG icon system with Hugo
I was testing out Hugo modules and decided to modularise this method of injecting icons so that it would be easier to use is across different themes and websites.
It doesn’t have any NPM dependencies. Though it only has Font Awesome 5 support by default, you can use any SVG icon set there is online, or with any custom SVG, with this module.
Here’s the module:
Hope this helps you in making more awesome and efficient websites.