Skip to content

Work In Progress: Provides Heroicons as a simple to use Hugo Module

License

Notifications You must be signed in to change notification settings

gohugoio/hugo-mod-heroicons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

[[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:

{{ $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.

About

Work In Progress: Provides Heroicons as a simple to use Hugo Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published