[SOLVED] Way to trim summaryLength even further?

I’m using the very handy summaryLength to keep my auto-generated summaries below about 67 characters (the limit for previewing content in Twitter & Google+).

Now, I’d like to trim it even further, so that I can list even shorter summaries in the “latest status” partial.

I’ve tried using strings.TrimRight but I’m not sure if it’s the right tool for the job (ie I can’t get it to work!) bogus code:

{{ strings.TrimRight .Summary "4" }}

Any advice gratefully received :slightly_smiling_face:


{{ substr .Summary 0 13 }}


{{ substr (.Summary | markdownify) 0 13 }}


You’re a :star2:, thank you, works a treat :slightly_smiling_face: