diff options
author | Gabriel Arazas <foo.dogsquared@gmail.com> | 2022-10-26 09:58:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 09:58:11 +0300 |
commit | d924ae1bd579920faf331b90b1580359052e2835 (patch) | |
tree | 2903fa72dcc830cf2542f02703175323e9df118d | |
parent | d1635e3c8e62528c52131c007152038d01286873 (diff) |
* Update to Heroicons v2.0.12
* Update README.md
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | config.toml | 4 | ||||
-rw-r--r-- | go.mod | 4 | ||||
-rw-r--r-- | go.sum | 4 |
4 files changed, 10 insertions, 9 deletions
@@ -1,6 +1,5 @@ Heroicons is a set of free MIT-licensed high-quality SVG icons for you to use in your web projects. - -224 icons per style currently, more to come in the future. See https://github.com/refactoringui/heroicons +Currently, this Hugo module mainly follows version v2.0. ## Use @@ -16,8 +15,8 @@ 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 := resources.Get "svg/heroicons/24/outline/search.svg" }} {{ $icon.Content | safeHTML }} ``` -See https://github.com/refactoringui/heroicons/tree/master/src for a full list of icons. +See https://github.com/tailwindlabs/heroicons/tree/master/src for a full list of icons and its folder structure. diff --git a/config.toml b/config.toml index 3d76466..3603742 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ [module] [[module.imports]] -path="github.com/refactoringui/heroicons" +path="github.com/tailwindlabs/heroicons" [[module.imports.mounts]] source = "src" -target = "assets/svg/heroicons"
\ No newline at end of file +target = "assets/svg/heroicons" @@ -2,4 +2,6 @@ module github.com/gohugoio/hugo-mod-heroicons go 1.13 -require github.com/refactoringui/heroicons v0.4.2 // indirect +require ( + github.com/tailwindlabs/heroicons v2.0.12+incompatible // indirect +) @@ -1,2 +1,2 @@ -github.com/refactoringui/heroicons v0.4.2 h1:gLYH0RH4nLh81yxAC/JgyvKIeK0d+sBVF/I2XkPb6U8= -github.com/refactoringui/heroicons v0.4.2/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk= +github.com/tailwindlabs/heroicons v2.0.12+incompatible h1:/VP8gTvGj4if1VxmeW9M1OYCNUzCQBRMHPv58CF3s2s= +github.com/tailwindlabs/heroicons v2.0.12+incompatible/go.mod h1:2SHGOdw86jviBkoeQINcTfkzAAao9dciip4RsMS9xIg= |