defiance-ng/layouts/_default/single.html

15 lines
440 B
HTML
Raw Normal View History

2022-07-20 14:27:20 -07:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ partial "metadata.html" . }}
<br><br>
2022-09-13 15:46:33 -07:00
{{ if $.Params.cws }}
2022-09-30 19:47:50 -07:00
<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>
2022-09-13 15:46:33 -07:00
<label for="cw" onclick="return false;">
{{ .Content }}
</label>
{{ else }}
2022-07-20 14:27:20 -07:00
{{ .Content }}
2022-09-13 15:46:33 -07:00
{{ end }}
2022-07-20 14:27:20 -07:00
{{ end }}