Get Level 1 entry on a section as Nav I have a template which I want to use for different sections.

In my template I have this code:

{% set pages = craft.entries.section('catering').level(1) %}
&lt;ul&gt;
  {% for page in pages %}
    &lt;li&gt;{{ page.getLink() }}&lt;/li&gt;
  {% endfor %}
&lt;/ul&gt;


But I want to select the current section by Craft self. So I can use the same template for multiple sections.
To expand on my comment you could do this:

In templates/_pages/index.twig you would do:

{% include '_pages/_types/_' ~ entry.type %}

Then create a folder in /templates/_pages/ called _types in it use, an example _standard.twig in which "standard" coincides to your Entry Type slug.

I hope that helps. I couldn't find the original SE post but I know that this method has been mentioned and preferred by many Crafters!