mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
9 lines
378 B
HTML
9 lines
378 B
HTML
{{- /* Checkbox unchecked */ -}}
|
|
{{- $old := `<input disabled="" type="checkbox">` -}}
|
|
{{- $new := `<i class="far fa-square fa-fw"></i>` -}}
|
|
{{- $content := replace . $old $new -}}
|
|
|
|
{{- /* Checkbox checked */ -}}
|
|
{{- $old = `<input checked="" disabled="" type="checkbox">` -}}
|
|
{{- $new = `<i class="far fa-check-square fa-fw"></i>` -}}
|
|
{{- return replace $content $old $new -}}
|