{{ define "main" }}
<article class="h-entry">
{{ if $.Title }}
<h1 class="p-name">{{ .Title }}</h1>
<hr>
{{ end }}
{{ partial "metadata.html" . }}
<br><br>
{{ if $.Params.cws }}
<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;">
    <div class="e-content">
    {{ .Content }}
    </div>
    <a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
</label>
{{ else }}
<div class="e-content">
{{ .Content }}
</div>
<a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>
{{ end }}
</article>
{{ partial "webmentions.html" . }}
{{ end }}
