Loop through structure entry types and matrix blocks
If I was building a single page website I might create a matrix field with different blocks for each "page".

{# Navigation #}
{% for block in entry.contentBlock %}
   &lt;li&gt;&lt;a href="#{{ block.slug }}"&gt;{{ block.title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}

{# Content #}
{% for block in entry.contentBlock %}
   &lt;section id="{{ block.slug }}"&gt;
     {{ block.body }}
   &lt;/section&gt;
{% endfor %}


This will allow someone to re-order "pages" easily under one entry. You can also create several different block types with different fields in if these "pages" needed to be different.