ndimatteo / HULL

💀 Headless Shopify Starter – powered by Next.js + Sanity.io
https://hull.dev
MIT License
1.38k stars 173 forks source link

How to display collections on homepage? #66

Closed localghost8000 closed 2 years ago

localghost8000 commented 2 years ago

Hey there,

I'm trying to figure out a way to make adding collections (eg: all vinyl, all t-shirts) as an option to my pages in Sanity (including the homepage). Is there a simple way to achieve this using this template? Thanks

ndimatteo commented 2 years ago

Hey there! You could easily achieve this by creating a new page content module that references an existing collection, and then using that to render the same collectionGrid that is shown on collection pages.

Hopefully that's enough to point you in the right direction, but let me know if you have any further questions!