diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-04-25 16:50:56 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-04-25 16:50:56 -0300 |
commit | 29d309db5196099982d96933acdc4c0d0ae45436 (patch) | |
tree | d05796b60487d2befc2780d35ae1f864eff225c7 /themes/m10c/layouts/partials/icon.html |
Initial commit, migrating from Ghost
Diffstat (limited to 'themes/m10c/layouts/partials/icon.html')
-rw-r--r-- | themes/m10c/layouts/partials/icon.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/m10c/layouts/partials/icon.html b/themes/m10c/layouts/partials/icon.html new file mode 100644 index 0000000..123bd23 --- /dev/null +++ b/themes/m10c/layouts/partials/icon.html @@ -0,0 +1,12 @@ +{{- if isset .ctx.Site.Data.m10c.icons .name -}} +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-{{ .name }}"> + <title>{{ .name }}</title> + {{ safeHTML (index .ctx.Site.Data.m10c.icons .name) }} +</svg> +{{- else -}} +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-link"> + <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path> + <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path> +</svg> +{{- end -}} + |