mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
8 lines
247 B
HTML
8 lines
247 B
HTML
|
{{ define "thread-card-text" }}
|
||
|
{{ $length := len . }}
|
||
|
{{ if gt $length 300 }}
|
||
|
<p class="card-text line-break text-break">{{ slice . 0 300 }} ...</p>
|
||
|
{{ else }}
|
||
|
<p class="card-text line-break text-break">{{ . }}</p>
|
||
|
{{ end }}
|
||
|
{{ end }}
|