# Section content not showing

**URL:** <https://discourse.gohugo.io/t/section-content-not-showing/10187>\
**Category:** support\
**Created:** [January 25, 2018, 2:19pm UTC](https://discourse.gohugo.io/t/section-content-not-showing/10187 "2018-01-25T14:19:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [January 25, 2018, 2:19pm UTC](https://discourse.gohugo.io/t/section-content-not-showing/10187/1 "2018-01-25T14:19:45Z")

</div>

I have a section “kontakt” with an [index.md](http://index.md) inside for my contact page.  
In layouts I have a folder “kontakt” with a template “section.html” inside.  
I verified that this template is used (putting some garbage in the file).

my problem is, that the content and title of the [index.md](http://index.md) is not showing, only the partials around them.

the template is:

```
{{/*
layout for contact page
*/}}
{{ define "main" }}
<article>
ssss
  <div class="text entry-content">
    {{ .Content }}
  </div>
  {{ partial "tools/contact-form.html" . }}
</article>
{{ end }}

```

{{ .Content }} is not showing. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [January 25, 2018, 2:45pm UTC](https://discourse.gohugo.io/t/section-content-not-showing/10187/2 "2018-01-25T14:45:24Z")

</div>

I got it working with the following template, but somehow think that’s reinventing the wheel 😉

```
{{ define "main" }}
  {{ with .Site.GetPage "page" "kontakt/index.md" }}
    <article>
      <header class="title">
        <h2 class="entry-title">
          <a href="{{ .Permalink }}">
            {{ .Title }}
          </a>
        </h2>
      </header>
      <div class="text entry-content">
        {{ .Content }}
      </div>
      {{ partial "tools/contact-form.html" . }}
    </article>
  {{ end }}
{{ end }}
```

---

<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:** [January 25, 2018, 3:01pm UTC](https://discourse.gohugo.io/t/section-content-not-showing/10187/3 "2018-01-25T15:01:57Z")

</div>

> [@davidsneighbour](#):
>
> What am I doing wrong?

- Sections have content files on the form “\_index.md”

Not sure **that** is the magic bullet here, but you asked the question.

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [January 25, 2018, 3:14pm UTC](https://discourse.gohugo.io/t/section-content-not-showing/10187/4 "2018-01-25T15:14:55Z")

</div>

Yep. #ilearnedsomethingtoday
