IMPROVEMENT: Trim the caption length to the first 100 characters
This commit is contained in:
parent
5691f41e33
commit
e44515ea7f
1 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
{{ $max_width = 53}}
|
||||
{{ end }}
|
||||
|
||||
{{/* Trim the caption length to the first 100 characters */}}
|
||||
{{ $caption = $caption | truncate 100 "..." }}
|
||||
|
||||
<div class="pic-grid" style="width: {{ $max_width }}%">
|
||||
<div class="pure-g">
|
||||
{{ range $num, $a := $pic_set }}
|
||||
|
|
Loading…
Add table
Reference in a new issue