I'm making a website and I would like to have a news/blog type section, each post will be very similar in stile to others (one image + text). I'm currently storing text of posts in a JSON files. I think it would be a waste to create a separate page for every post since I just need to retrieve the json and put text into correct places on the page. How can I do it so that as few repeated pages are used as possible? I'm currently using js and php.
Lets say I have a main page with sidebar saying something like:
- Post 1
- Post 2
- ...
- Post n
What should I do, so that when I click on any of the posts a new page opens with the correct post, bearing in mind that I don't want to have a different page for each post.