mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
15 lines
454 B
HTML
15 lines
454 B
HTML
{{- /* Font Awesome */ -}}
|
|
{{- /* :(fa-regular fa-circle): -> <i class="fa-regular fa-circle fa-fw"></i> */ -}}
|
|
|
|
{{- $REin := ` (:\([\w- ]+?\):)` -}}
|
|
{{- $REout := ` $1` -}}
|
|
{{- $content := replaceRE $REin $REout . -}}
|
|
|
|
{{- $REin = `(:\([\w- ]+?\):) ` -}}
|
|
{{- $REout = `$1 ` -}}
|
|
{{- $content = replaceRE $REin $REout . -}}
|
|
|
|
{{- $REin = `:\(([\w- ]+?)\):` -}}
|
|
{{- $REout = `<i class="$1"></i>` -}}
|
|
{{- return replaceRE $REin $REout $content -}}
|