forked from planex/defiance
specify content warnings in list view
This commit is contained in:
parent
c6d9313bcd
commit
7b5d55b01f
1 changed files with 3 additions and 0 deletions
|
@ -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 }}">
|
||||
|
|
Loading…
Add table
Reference in a new issue