#useContent() prev and next, but only for a specific post type

2 messages · Page 1 of 1 (latest)

patent abyss
#

In my haste to use a predefined Nuxt function, I totally missed key fundamentals of my predicament and have solved it with basic javascript.

`<NuxtLink v-if="prev && prev._path.includes('/blog')" :to="prev._path">{{ prev.title }}</NuxtLink>

<NuxtLink v-if="next && next._path.includes('/blog')" :to="next._path">{{ next.title }}</NuxtLink>`