chore: update icon shortcode and partial

This commit is contained in:
Xin 2023-08-18 23:18:50 +01:00
parent 2b7b5622aa
commit bb6b0631e5
2 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{{/* Render raw svg icon from .Site.Data */}}
{{- $icon := index site.Data.icons .name -}}
{{- if not $icon -}}

View File

@ -1,3 +1,4 @@
{{- $name := .Get "name" | default (.Get 0) -}}
{{- $icon := index site.Data.icons (.Get 0) -}}
{{- $attributes := "height=1em"}}