2👍
✅
You can use vuex
store and save your posts in the store.
Then, you can get your posts from the store using getters
How to save your posts to the store?
You can use NuxtServerInit action for this. It has access to the context
object and you can access your $content
object from there and save your posts via mutation
Then in your navbar component you can get your posts
using store getters
Source:stackexchange.com