I'm helping a client setup his new Prismic site and am trying to keep the collection types to a minimum, so for my home page I'm using the Page collection type.
I am sorry, but I need more information on this question? Can you describe it a little more? Or It would be better if you can share the repo URL and source code with me.
The github repo is private, but if you pm me your github username I'll temporarily add you to the repo.
I have a single Page collection in Prismic. The home page is made up of slices (like all the other pages) and has a slug of "home". In my link resolver i'm pointing the page with the home uid to my home route (/).
export default function (doc) {
if (doc.isBroken) {
return '/not-found'
} //console.log(doc);
if (doc.uid === 'home') {
return '/';
}
if (doc.type === 'page') {
return '/' + doc.uid
}
return '/not-found'
}
In my index.vue I'm outputting the single home content with