# Get the 1st word from front matter with more than 1 word

**URL:** <https://discourse.gohugo.io/t/get-the-1st-word-from-front-matter-with-more-than-1-word/7063>\
**Category:** support\
**Created:** [June 19, 2017, 1:24am UTC](https://discourse.gohugo.io/t/get-the-1st-word-from-front-matter-with-more-than-1-word/7063 "2017-06-19T01:24:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)\
**Post date:** [June 19, 2017, 3:36am UTC](https://discourse.gohugo.io/t/get-the-1st-word-from-front-matter-with-more-than-1-word/7063/2 "2017-06-19T03:36:17Z")

</div>

Hmm, wild guess: maybe using index after using split? Search for this:

```
 {{ $section := index (split .URL "/") 1 }}

```

… on this post:

> **[How to list sections?](https://discourse.gohugo.io/t/how-to-list-sections/1606)**
>
> Hello, I'm trying to make a list of sections that are available for users to navigate into. My thinking is to treat them like categories. I tried this code: {{ range .Site.Sections }} {{ . }} {{ end }} This was...

---

_[View the full topic](https://discourse.gohugo.io/t/get-the-1st-word-from-front-matter-with-more-than-1-word/7063)._
