diff options
-rw-r--r-- | config.toml | 9 | ||||
-rw-r--r-- | go.mod | 3 | ||||
-rw-r--r-- | layouts/partials/heroicon.html | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..89bf9d0 --- /dev/null +++ b/config.toml @@ -0,0 +1,9 @@ +[module] +[[module.mounts]] +source = "layouts" +target = "layouts" +[[module.imports]] +path="github.com/gohugoio/hugo-mod-heroicons" +[[module.imports.mounts]] +source = "src" +target = "assets/svg/heroicons"
\ No newline at end of file @@ -0,0 +1,3 @@ +module github.com/gohugoio/hugo-mod-heroicons + +go 1.13 diff --git a/layouts/partials/heroicon.html b/layouts/partials/heroicon.html new file mode 100644 index 0000000..9a7b277 --- /dev/null +++ b/layouts/partials/heroicon.html @@ -0,0 +1,2 @@ +{{ $icon := resource.Get . }} +<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="{{ $icon.Content }}" />
\ No newline at end of file |