{{- $type := index . "type" | default "fa" }}
{{- $classList := split (index . "class") " " }}
{{- $scratch := index . "scratch" }}
{{- /* Font Awesome */ -}}
{{- if eq $type "fa" -}}
{{- /* Fork Awesome */ -}}
{{- else if eq $type "fo" -}}
{{- $newClassList := slice -}}
{{- range $classList -}}
{{- if eq . "fa" -}}
{{- $newClassList = $newClassList | append "fo" -}}
{{- else -}}
{{- $newClassList = $newClassList | append (replaceRE `^fa\-(.+)$` `fo-$1` .) -}}
{{- end -}}
{{- end -}}
{{- $scratch.Set "forkawesome" true -}}
{{- /* Others */ -}}
{{- else -}}
{{- $scratch.Set "iconfont" true -}}
{{- end -}}