diff options
| author | tdro <tdro@noreply.example.com> | 2025-01-11 00:00:00 +0000 |
|---|---|---|
| committer | tdro <tdro@noreply.example.com> | 2025-01-11 00:00:00 +0000 |
| commit | 41b4467a16f5b12bb6b52eb0586cb4883bbce1e1 (patch) | |
| tree | 5f11322c586c7abb26dd8f58c32486f1288aec54 | |
| parent | 89be85c71e8e0dc5d369a5c087675684186b9121 (diff) | |
| download | canory-41b4467a16f5b12bb6b52eb0586cb4883bbce1e1.tar.gz canory-41b4467a16f5b12bb6b52eb0586cb4883bbce1e1.tar.bz2 canory-41b4467a16f5b12bb6b52eb0586cb4883bbce1e1.zip | |
assets/templates/markdown-feed: Avoid truncate double escape with delimit
| -rw-r--r-- | assets/templates/markdown-feed.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/templates/markdown-feed.yaml b/assets/templates/markdown-feed.yaml index ff0aae5..4517261 100644 --- a/assets/templates/markdown-feed.yaml +++ b/assets/templates/markdown-feed.yaml @@ -33,7 +33,7 @@ feed: {{- $caption := "Image/Picture" -}} {{- with $content -}} - {{ $caption = $content | truncate 80 "" }} + {{ $caption = delimit (first 20 (split ($content) " ")) " " }} {{- end }} {{ with .enclosure -}} |
