# Change the 70 word limit for summary

**URL:** <https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695>\
**Category:** support\
**Created:** [May 23, 2017, 7:53pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695 "2017-05-23T19:53:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenbe](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stephenbe/32/4190_2.png) [@stephenbe](https://discourse.gohugo.io/u/stephenbe)\
**Post date:** [May 23, 2017, 7:53pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695/1 "2017-05-23T19:53:53Z")

</div>

I was wondering if it possible to change the 70 word limit of summary in hugo? Is it possible to actually choose what the limit is in certain context or would the change only be global?

> **[Functions Quick Reference](https://gohugo.io/functions/)**
>
> Comprehensive list of Hugo templating functions, including basic and advanced usage examples.

I also found this, but is it possible to use this with the if truncate?  
`{{ if .Truncated }}`

Thanks!

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 23, 2017, 7:58pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695/2 "2017-05-23T19:58:47Z")

</div>

You ask several questions.

- The 70 word is currently hardcoded (I think there is a GitHub issue about it) and this is directly related to `.Truncated`.
- The `truncate` template func is in no way releated to the above (but it is a great function).

---

<div class="post-metadata">

**Author:** ![stephenbe](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stephenbe/32/4190_2.png) [@stephenbe](https://discourse.gohugo.io/u/stephenbe)\
**Post date:** [May 23, 2017, 7:59pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695/3 "2017-05-23T19:59:22Z")

</div>

thank you for quick reply, anyway to do something if truncated with the truncated function?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 23, 2017, 8:03pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695/4 "2017-05-23T20:03:34Z")

</div>

You could do something ala:  
`

```auto
$myContent := "Hugo is cool"
$truncated := $myContent | truncate

if gt (len $myContent) (len $truncated)

```

The above is pseudo template code, and you would have to take the ellipse into account etc., but you get the drift.

---

<div class="post-metadata">

**Author:** ![stephenbe](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/stephenbe/32/4190_2.png) [@stephenbe](https://discourse.gohugo.io/u/stephenbe)\
**Post date:** [May 23, 2017, 8:04pm UTC](https://discourse.gohugo.io/t/change-the-70-word-limit-for-summary/6695/5 "2017-05-23T20:04:09Z")

</div>

Thanks! 🙂
