blob: 4b1dc8b51723cbb4b07dc5a3b0f47f20bfe964f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Heroicons is a set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
140 icons per style currently, more to come in the future. See https://github.com/refactoringui/heroicons
## Use
Import the module into your Hugo project's site config:
```toml
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-heroicons"
```
The icons gets mounted in `assets/svg/heroicons`.
This means that they can be used like this in a Hugo template:
```html
{{ $icon := resources.Get "svg/heroicons/outline/search.svg" }}
{{ $icon.Content | safeHTML }}
```
See https://github.com/refactoringui/heroicons/tree/master/src for a full list of icons.
|