ccchh-website/layouts/shortcodes/fa.html

7 lines
324 B
HTML
Raw Permalink Normal View History

2023-10-02 12:09:39 +02:00
<!-- 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 }}
2023-10-27 00:08:07 +02:00
<i class="{{ $faStylePrefix }} {{ range $iconName := .Params }} fa-{{ $iconName }} {{ end }}"></i>