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:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-24 20:33:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-24 20:33:57 +0300
commit7e50e358ba21a764a38943d4e3413b8b442dd4cc (patch)
treec6c4b4f45d495902c27ecb522e3b79928153d878
parent79182cedeb9f3799429a78e213926aca5cc50c27 (diff)
Initial version
-rw-r--r--config.toml9
-rw-r--r--go.mod3
-rw-r--r--layouts/partials/heroicon.html2
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
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..ab43d88
--- /dev/null
+++ b/go.mod
@@ -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