Newbie: Nav only showing on homepage [SOLVED]

Hello there: I’m sure this is a totally newb question but I’m tearing my hair out! I have a partial called navigation.html

In it is:

    <nav class="nav">
        <ul>
          {{ range .Data.Pages }}
            {{ if eq .Type "page" }}
              <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
            {{ end }}
          {{ end }}
        </ul>
    </nav>

The partial is called to every single and list layout file.

The Problem:

The navigation only shows on the homepage. On other pages the <ul>'s are empty. I know the partial is being called because the html output in the browser is:

    <nav class="nav">
        <ul>
          
        </ul>
    </nav>

Am I missing something major?

Thanks in advance!

Hello @bike,

Try to replace {{ range .Data.Pages }} with {{ range .Site.Pages }}

1 Like

Thank you @digitalcraftsman!