Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/gohugoio/hugo-mod-heroicons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 59f33c445a55ae826139bdbd4c4103acfe7addb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Heroicons is a set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
Currently, this Hugo module mainly follows version v2.0.

## 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/24/outline/search.svg" }}
{{ $icon.Content | safeHTML }}
```

See https://github.com/tailwindlabs/heroicons/tree/master/src for a full list of icons and its folder structure.