forked from drowl87/hextra_mirror

* feat: add feature grid and card shortcodes * feat: add markdown content to hextra home * chore: add button for hextra home * chore: add heading and subtitle * chore: finish moving hextra home to shortcodes * chore: regenerate css * chore: improve hextra home layout shortcodes * chore: update css * chore: decrease button size
14 lines
388 B
HTML
14 lines
388 B
HTML
{{- $name := .Get "name" | default (.Get 0) -}}
|
|
{{- $icon := index site.Data.icons $name -}}
|
|
{{- $attributes := .Get "attributes" | default "height=1em"}}
|
|
|
|
{{- if not $icon -}}
|
|
{{ errorf "icon %q not found" $name }}
|
|
{{- end -}}
|
|
|
|
{{- $icon = replaceRE "<svg" (printf "<svg %s" $attributes) $icon -}}
|
|
|
|
<span class="inline-block align-text-bottom icon">
|
|
{{- $icon | safeHTML -}}
|
|
</span>
|