6 lines
No EOL
323 B
HTML
6 lines
No EOL
323 B
HTML
<!-- use default fontawesome class 'fas' or use a specified one like 'fab' for brands -->
|
|
{{- $faStylePrefix := "fa-solid" }}
|
|
{{- if in (slice "fa-solid" "fa-brands") (.Get 0) }}
|
|
{{- $faStylePrefix = (.Get 0) }}
|
|
{{- end }}
|
|
<i class="{{ $faStylePrefix }} {{ range $iconName := .Params }} fa-{{ $iconName }} {{ end }}"></i> |