diff options
Diffstat (limited to 'layouts/partials/function/fontawesome.html')
-rw-r--r-- | layouts/partials/function/fontawesome.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/layouts/partials/function/fontawesome.html b/layouts/partials/function/fontawesome.html index 270aab5..d3a37ac 100644 --- a/layouts/partials/function/fontawesome.html +++ b/layouts/partials/function/fontawesome.html @@ -1,5 +1,14 @@ {{- /* Font Awesome */ -}} {{- /* :(far fa-circle): -> <i class="far fa-circle fa-fw"></i> */ -}} -{{- $REin := `:\(([\w- ]+?)\):` -}} -{{- $REout := `<i class="$1 fa-fw"></i>` -}} -{{- return replaceRE $REin $REout . -}} + +{{- $REin := ` (:\([\w- ]+?\):)` -}} +{{- $REout := ` $1` -}} +{{- $content := replaceRE $REin $REout . -}} + +{{- $REin = `(:\([\w- ]+?\):) ` -}} +{{- $REout = `$1 ` -}} +{{- $content = replaceRE $REin $REout . -}} + +{{- $REin = `:\(([\w- ]+?)\):` -}} +{{- $REout = `<i class="$1 fa-fw"></i>` -}} +{{- return replaceRE $REin $REout $content -}} |