--- title: Icon --- To use this shortcode inline, inline shortcode needs to be enabled in the config: ```yaml {filename="hugo.yaml"} enableInlineShortcodes: true ``` List of available icons can be found in [`data/icons.yaml`](https://github.com/imfing/hextra/blob/main/data/icons.yaml). ## Example {{< icon "academic-cap" >}} {{< icon "cake" >}} {{< icon "gift" >}} {{< icon "sparkles" >}} ## Usage ``` {{}} ``` [Heroicons](https://v1.heroicons.com/) v1 outline icons are available out of the box. ### How to add your own icons Create `data/icons.yaml` file, then add your own SVG icons in the following format: ```yaml {filename="data/icons.yaml"} your-icon: your icon svg content ``` It then can be used in the shortcode like this: ``` {{}} {{}} ``` Tip: [Iconify Design](https://iconify.design/) is a great place to find SVG icons for your site.