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" . }}
<br><br>
{{ if $.Params.cws }}
<input type="checkbox" id="cw">Content Warning: {{ range $i, $e := .Params.cws -}}
{{- if $i -}}, {{ end -}}
{{ $e | humanize }}
{{- end -}}</input>
<p>Content Warning: {{ range $i, $e := .Params.cws -}}{{- if $i -}}, {{ end -}}{{ $e | humanize }}
{{- end -}}</p>
<input type="checkbox" id="cw"> By clicking this checkbox, I consent to reading this article.</input>
<label for="cw" onclick="return false;">
{{ .Content }}
</label>