IMPROVEMENT: Trim the caption length to the first 100 characters

This commit is contained in:
FarseaSH 2024-09-28 18:44:30 +08:00
parent 5691f41e33
commit e44515ea7f

View file

@ -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 }}