Dynamic pages in Ghost

I have one idea for a simple blog. However, there’s one section that would be dynamic. I am curious whether it would be possible to create a template and then load a JSON file with the data and let Ghost generate the pages dynamically.

For example: Imagine you have a template called cat.hbs and then a cat.json file with 100 cats. Would it be possible to generate a page for each cat with custom slugs so each one of those becomes https://mycat.com/cat/snowball or https://mycat.com/cat/pancake using one template?

I’ve seen this page but I’m confused, it seems that that is oriented towards creating custom URL structures, but not custom pages.


Any solution?

Yes. Similarly, I also want to achieve this. Do you have any workaround solution?


1 Like

I think I’m going to use Ghost as a headless CMS and use Next.js for the frontend.

Ok. Thanks for revert.Yes.

It would be nice if Ghost provides this inbuilt module to generate dynamic pages.