defiance-ng/layouts/_default/single.html

16 lines
368 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 }}
<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 }}
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 }}