Get related articles with Nuxt Content
Hi. I'm migrating my blog to Nuxt Content and I'm using the Nuxt UI Pro Saas template for my blog. I added tags in the front matter of my blog posts and I would like to use these to display a list of related articles at the end of a blog post.
I have seen there is the concept of "surround" content in Nuxt, but that's to navigate to previous and next articles (and that depends on the path which in my case does not matter as all my articles are in the same folder), so not really what I want. In chirpy (a famous theme for jekyll) they have some logic that score articles depending on the tags and categories (https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_includes/related-posts.html). I guess I will have to implement something like that but I wanted to know how to do that propertly with Nuxt Content and ensure there was nothing built-in.
Do you have some tips on how to implement retrieving related content based on metatada (tags) in the pages? Is there somehting do do that easily with Nuxt Content?
0 Replies