Xin b90c2e7737 feat: add detail box and update styles
chore: update 404 page style

chore: update icon

to use global site variable
2023-08-16 20:39:43 +01:00

14 lines
297 B
HTML

{{- $icon := index site.Data.icons .name -}}
{{- if not $icon -}}
{{ errorf "icon %q not found" .name }}
{{- end -}}
{{- $icon = $icon | safeHTML -}}
{{- if .attributes -}}
{{- $icon = replaceRE "<svg" (printf "<svg %s" .attributes) $icon -}}
{{- end -}}
{{- return ($icon | safeHTML) -}}