Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/function/fontawesome.html')
-rw-r--r--layouts/partials/function/fontawesome.html15
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 := `&nbsp;$1` -}}
+{{- $content := replaceRE $REin $REout . -}}
+
+{{- $REin = `(:\([\w- ]+?\):) ` -}}
+{{- $REout = `$1&nbsp;` -}}
+{{- $content = replaceRE $REin $REout . -}}
+
+{{- $REin = `:\(([\w- ]+?)\):` -}}
+{{- $REout = `<i class="$1 fa-fw"></i>` -}}
+{{- return replaceRE $REin $REout $content -}}