Make content warnings clearer

This commit is contained in:
ch0ccyra1n 2022-09-30 19:47:50 -07:00
parent 901b00b29a
commit de77b6ac47

View file

@ -3,10 +3,9 @@
{{ partial "metadata.html" . }} {{ partial "metadata.html" . }}
<br><br> <br><br>
{{ if $.Params.cws }} {{ if $.Params.cws }}
<input type="checkbox" id="cw">Content Warning: {{ range $i, $e := .Params.cws -}} <p>Content Warning: {{ range $i, $e := .Params.cws -}}{{- if $i -}}, {{ end -}}{{ $e | humanize }}
{{- if $i -}}, {{ end -}} {{- end -}}</p>
{{ $e | humanize }} <input type="checkbox" id="cw"> By clicking this checkbox, I consent to reading this article.</input>
{{- end -}}</input>
<label for="cw" onclick="return false;"> <label for="cw" onclick="return false;">
{{ .Content }} {{ .Content }}
</label> </label>