Skip to content
Snippets Groups Projects
Commit d7ee6567 authored by alexisben's avatar alexisben
Browse files

Merge branch 'main' of github.com:osunyorg/theme

parents 48228e73 2aa79117
No related branches found
No related tags found
No related merge requests found
{{ $length := default 150 (index site.Params .kind "index" "truncate_description") }}
{{ $summary := .summary | safeHTML | truncate $length }}
{{ $summary}}
\ No newline at end of file
{{ $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 }}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment