cullmann.io/themes/LoveIt/layouts/partials/function/checkbox.html

10 lines
378 B
HTML
Raw Normal View History

2021-02-18 21:44:01 +01:00
{{- /* 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 -}}