Home

Issue: 101

Loop over pages

[issue link]

Apologies if this is documented somewhere. I am looking into whether I should replace my Jekyll site for Nuxt, is there a way to loop over pages?

E.g Jekyll has

{% for post in site.posts %}
    {{ post.title }}
{% endif %}

It would be nice if Nuxt had something similar, and if a page could expose meta data, e.g.

<script>
export default {
    meta: {
        title: 'Hello World'
    }
}
</script>

Thanks.

This question is available on Nuxt.js community (#c83)