# \[SOLVED\] Way to trim summaryLength even further?

**URL:** <https://discourse.gohugo.io/t/solved-way-to-trim-summarylength-even-further/10945>\
**Category:** support\
**Created:** [March 8, 2018, 4:00pm UTC](https://discourse.gohugo.io/t/solved-way-to-trim-summarylength-even-further/10945 "2018-03-08T16:00:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![growdigital](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/growdigital/32/21180_2.png) [@growdigital](https://discourse.gohugo.io/u/growdigital)\
**Post date:** [March 8, 2018, 4:00pm UTC](https://discourse.gohugo.io/t/solved-way-to-trim-summarylength-even-further/10945/1 "2018-03-08T16:00:11Z")

</div>

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](https://github.com/growdigital/indiego/blob/master/layouts/partials/aside.html#L12).

I’ve tried using [strings.TrimRight](https://gohugo.io/functions/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:

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

```

Any advice gratefully received 🙂

---

<div class="post-metadata">

**Author:** ![royce](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/royce/32/5427_2.png) [@royce](https://discourse.gohugo.io/u/royce)\
**Post date:** [March 8, 2018, 4:54pm UTC](https://discourse.gohugo.io/t/solved-way-to-trim-summarylength-even-further/10945/2 "2018-03-08T16:54:18Z")

</div>

Try:

`{{ substr .Summary 0 13 }}`

or

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

> **[substr](https://gohugo.io/functions/substr/)**
>
> Extracts parts of a string from a specified character's position and returns the specified number of characters.

---

<div class="post-metadata">

**Author:** ![growdigital](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/growdigital/32/21180_2.png) [@growdigital](https://discourse.gohugo.io/u/growdigital)\
**Post date:** [March 8, 2018, 7:35pm UTC](https://discourse.gohugo.io/t/solved-way-to-trim-summarylength-even-further/10945/3 "2018-03-08T19:35:58Z")

</div>

You’re a 🌟, thank you, works a treat 🙂
