Official inline SVG integration for Hyas.
npm i @hyas/inline-svg
Optionally, install one or more icon sets, e.g., Tabler Icons and Bootstrap Icons:
npm i @tabler/icons bootstrap-icons
Add mounts to ./config/_default/module.toml
:
[[mounts]]
source = "node_modules/bootstrap-icons/icons"
target = "assets/svgs/bootstrap-icons"
[[mounts]]
source = "node_modules/@tabler/icons/icons"
target = "assets/svgs/tabler-icons"
[[mounts]]
source = "node_modules/@hyas/inline-svg/layouts"
target = "layouts"
[[mounts]]
source = "assets"
target = "assets"
[[mounts]]
source = "layouts"
target = "layouts"
Set the default icon set directory in ./config/_default/params.toml
:
# Inline SVG (@hyas/inline-svg)
[inline_svg]
iconSetDir = "tabler-icons" # "tabler-icons" (default)
See the Hyas documentation:
This npm package is based on the Hugo module: