feat: Add Font Awesome icon shortcode
This commit is contained in:
parent
6a0c47ff96
commit
ad071b32a0
1 changed files with 11 additions and 0 deletions
11
layouts/shortcodes/fa.html
Normal file
11
layouts/shortcodes/fa.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{- $faStyle := .Get 0 -}}
|
||||
{{- $faName := .Get 1 -}}
|
||||
{{- $isFullWidth := .Get 2 -}}
|
||||
<i
|
||||
class="
|
||||
{{- $faStyle }}
|
||||
fa-{{ $faName }}
|
||||
{{- if eq $isFullWidth "yes" }}
|
||||
fa-fw
|
||||
{{ end -}}"
|
||||
></i>
|
Loading…
Reference in a new issue