specify content warnings in list view

This commit is contained in:
ch0ccyra1n 2023-06-04 13:49:34 -07:00
parent c6d9313bcd
commit 7b5d55b01f

View file

@ -12,6 +12,9 @@ img {
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ partial "metadata.html" . }}
{{ if .Params.cws }}
<a href="{{ .RelPermalink }}">
<p>Content Warning: {{ range $i, $e := .Params.cws -}}{{- if $i -}}, {{ end -}}{{ $e | humanize }}{{- end -}}</p>
</a>
{{ else }}
<br><br>
<a href="{{ .RelPermalink }}">