forked from drowl87/hextra_mirror
chore: update icon shortcode and partial
This commit is contained in:
parent
2b7b5622aa
commit
bb6b0631e5
@ -1,3 +1,4 @@
|
||||
{{/* Render raw svg icon from .Site.Data */}}
|
||||
{{- $icon := index site.Data.icons .name -}}
|
||||
|
||||
{{- if not $icon -}}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{{- $name := .Get "name" | default (.Get 0) -}}
|
||||
{{- $icon := index site.Data.icons (.Get 0) -}}
|
||||
{{- $attributes := "height=1em"}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user