Replies: 1 comment 1 reply
-
Though it is possible to use Hugo Modules next to npm, it is not recommended. Keeping all your project dependencies in one place — id est in Doks comes with an icon shortcode that you can use with any icon set. For example, to use Bootstrap Icons:
Use the shortcode in your markdown files like so: {{< inline-svg "1-circle" >}} You can also specify SVG attributes, for example: {{< inline-svg src="2-circle" fill="#ee52b7" height="2rem" width="2rem" class="svg-inline-custom" >}} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to import a Hugo module to add icon shortcode support. However, when I follow the instructions here, it seems to replace the Doks theme. Is there a better way to import non-theme modules?
Beta Was this translation helpful? Give feedback.
All reactions