redesign 2023
This commit is contained in:
14
themes/FixIt/layouts/partials/function/fontawesome.html
Normal file
14
themes/FixIt/layouts/partials/function/fontawesome.html
Normal file
@ -0,0 +1,14 @@
|
||||
{{- /* Font Awesome */ -}}
|
||||
{{- /* :(fa-regular fa-circle): -> <i class="fa-regular fa-circle" aria-hidden="true"></i> */ -}}
|
||||
|
||||
{{- $REin := ` (:\([\w- ]+?\):)` -}}
|
||||
{{- $REout := ` $1` -}}
|
||||
{{- $content := replaceRE $REin $REout . -}}
|
||||
|
||||
{{- $REin = `(:\([\w- ]+?\):) ` -}}
|
||||
{{- $REout = `$1 ` -}}
|
||||
{{- $content = replaceRE $REin $REout . -}}
|
||||
|
||||
{{- $REin = `:\(([\w- ]+?)\):` -}}
|
||||
{{- $REout = `<i class="$1" aria-hidden="true"></i>` -}}
|
||||
{{- return replaceRE $REin $REout $content -}}
|
Reference in New Issue
Block a user