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

fontawesome.html « function « partials « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d64c3dce8a12d89caed891a8fbe561cfb642137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- /* Font Awesome */ -}}
{{- /* :(far fa-circle): -> <i class="far fa-circle fa-fw"></i> */ -}}

{{- $REin := ` (:\([\w- ]+?\):)` -}}
{{- $REout := `&nbsp;$1` -}}
{{- $content := replaceRE $REin $REout . -}}

{{- $REin = `(:\([\w- ]+?\):) ` -}}
{{- $REout = `$1&nbsp;` -}}
{{- $content = replaceRE $REin $REout . -}}

{{- $REin = `:\(([\w- ]+?)\):` -}}
{{- $REout = `<i class="$1"></i>` -}}
{{- return replaceRE $REin $REout $content -}}