Automatically add projects or portfolios in the main page

Hi, I would like to know if there is a way to add my projects or portfolios on the main page of my portfolios automatically?.
I have to take a screenshot of my project and I putting images on the main page. Is there any way to make convenience to do it? Like using JavaScript library?

This is my portfolio.

Thank you!

Not really. You need to create the project before you can link to it.

I’ve never used github pages, but it looks like you might be able to send an ajax request to get a list of your existing pages: https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site

If you get this to work, it’s downhill from there. You parse the json response to a javascript object (or let jQuery do that for you: http://api.jquery.com/jquery.ajax/), loop through the object to get your page data and paste it in your code.

Report back if you have any problems.