pages/layouts/shortcodes/fa.html

14 lines
271 B
HTML
Raw Normal View History

{{- $faName := .Get 0 -}}
{{- $isFullWidth := .Get 1 -}}
{{- $fontAwesomePath := print "assets/graphics/fa/" $faName ".svg" -}}
<span
class="fa-container{{- if eq $isFullWidth "yes" }}
2024-11-23 03:14:22 +00:00
fa-fw
{{ end -}}"
>
{{- readFile $fontAwesomePath | safeHTML -}}
</span>