defiance-ng/layouts/_default/single.html

16 lines
No EOL
368 B
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ 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>
<label for="cw" onclick="return false;">
{{ .Content }}
</label>
{{ else }}
{{ .Content }}
{{ end }}
{{ end }}