Create a template loop based on json data
Hi buddy,
It's been a while.. hope your well! I automatically thought of you and give you repo another go as its just totally awesome! Quick question, how would I go about creating a template for say blog posts. Then feed it data in a loop? For example, I have 6 blog posts, maybe in json data, with that, it uses a template and creates a bunch of blog posts when in production e.g.
/blog/blog-post-1.html
/blog/blog-post-2.html
/blog/blog-post-3.html
If i'm making absolutely no sense, please let me know! I'll try and clarify further.
Heya! Hope all is well @Sananes! It's been a while since I've been playing with my own repo, mainly because I've been using a lot of Vue/React to create static pages nowadays (Have you checkout out Gatsby? It's amazing!). I'm not sure if I have ever done actual post templating, but let me have a look in the archives and get back to you!