The Single Post Page
Learn how to request single posts from the server.
We'll cover the following...
We'll cover the following...
With a typical blog page, such as our pages/blog/index.vue, we can usually click a post and be taken to the full-page version. This is what we will do with the pages/blog/[id].vue file:
When we click any blog post, it will use the Nuxt router to navigate to a route such as /blog/2.
Line 6: The
NuxtLinkcomponent will navigate to a URL such as ...