# Second content?

**URL:** <https://discourse.gohugo.io/t/second-content/30559>\
**Category:** support\
**Created:** [January 11, 2021, 7:29am UTC](https://discourse.gohugo.io/t/second-content/30559 "2021-01-11T07:29:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sriggs](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sriggs/32/13234_2.png) [@sriggs](https://discourse.gohugo.io/u/sriggs)\
**Post date:** [January 11, 2021, 7:29am UTC](https://discourse.gohugo.io/t/second-content/30559/1 "2021-01-11T07:29:56Z")

</div>

I have my main page template sorted, I am using {{ Content .}} for the main page text, and partials to build up other sections.

One of my sections has page specific content, a list of service areas. Is there a way of creating a second page content to list these service areas?

thanks

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [January 12, 2021, 12:22am UTC](https://discourse.gohugo.io/t/second-content/30559/2 "2021-01-12T00:22:04Z")

</div>

Have a look at headless content: [Build Options | Hugo](https://gohugo.io/content-management/build-options/#not-publishing-a-page)

---

<div class="post-metadata">

**Author:** ![sriggs](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/sriggs/32/13234_2.png) [@sriggs](https://discourse.gohugo.io/u/sriggs)\
**Post date:** [January 12, 2021, 12:56pm UTC](https://discourse.gohugo.io/t/second-content/30559/3 "2021-01-12T12:56:33Z")

</div>

Thanks for that

I have managed to sort it with this code:

```auto
{{ with .Resources.ByType "page" }}
              		{{ range . }}
                  <div class="fl w-20 pa2 listareas">
              				{{.Content}}
                  </div>
              		{{ end }}
              {{ end }}

```

Essentially I have my content folder with 3 files

```auto
/folder
-index.md
-listarea1.md
-listarea2.md

```

They render into 2 lists in the page which is perfect for what I need. I think I can build the full page now without too much hassle 🙂

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 14, 2021, 12:56pm UTC](https://discourse.gohugo.io/t/second-content/30559/4 "2021-01-14T12:56:37Z")

</div>

Closed on January 14, 2021, 12:56pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
