-
Alexis BENOIT authoredAlexis BENOIT authored
GetRichSummary 303 B
{{ $length := 150 }}
{{ $option := index site.Params .kind "index" "truncate_description" }}
{{ if eq (printf "%T" $option) "int" }}
{{ $length = $option }}
{{ end }}
{{ $summary := .summary | safeHTML }}
{{ if gt $length 0 }}
{{ $summary = $summary | truncate $length }}
{{ end }}
{{ $summary }}