Skip to main content
  1. Snippits & Exemplars/
  2. Congo Exemplars/
  3. Congo's Shortcodes/

Icon

🦍 Shortcodes
icon outputs a scaled SVG icon

icon takes the icon name as its only parameter. The icon is scaled to match the current text size.

Example:

{{< icon "github" >}}

Output:

Icons are populated using Hugo pipelines which makes them very flexible. Congo includes a number of built-in icons for social, links and other purposes.

Check the icon samples page for a full list of supported icons.

Custom icons can be added by providing your own svg icon assets in the assets/icons/ directory of your project.

The icon can then be referenced in the shortcode by using the SVG filename without the .svg extension.

Icons can also be used in partials by calling the icon partial.