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

github.com/gohugoio/hugo-mod-heroicons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Yves Gastaud <jygastaud@mail.com>2020-06-03 15:04:46 +0300
committerJean-Yves Gastaud <jygastaud@mail.com>2020-06-03 15:17:26 +0300
commit1750886c71ce66a496468e5186dc4ffa993d950c (patch)
treeb854e1d1f60d7f1fde48e51a49b6c56342ec317e
parent7c5b4fe893d63f613616aa13902f764e3598a927 (diff)
Fix import mounts and readme
Looking at 0.3.2 tag of hericons, `dist` directory don't exist anymore and `svg` names and directory has changed.
-rw-r--r--README.md2
-rw-r--r--config.toml2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0cf9a55..4b1dc8b 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ 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-md/md-search.svg" }}
+{{ $icon := resources.Get "svg/heroicons/outline/search.svg" }}
{{ $icon.Content | safeHTML }}
```
diff --git a/config.toml b/config.toml
index 6c39487..3d76466 100644
--- a/config.toml
+++ b/config.toml
@@ -2,5 +2,5 @@
[[module.imports]]
path="github.com/refactoringui/heroicons"
[[module.imports.mounts]]
-source = "dist"
+source = "src"
target = "assets/svg/heroicons" \ No newline at end of file