DEV Community

Discussion on: Portfolio API + GitHub Pages

Collapse
 
thewhitewulfy profile image
Alok Prateek

Great idea! I was thinking of using it in my Jekyll blog, so like recent posts on jekyll, I can statically generate this json using liquid. A cool use case can be using the api to display most recent post on my portfolio page.

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

The idea looks cool
How would we implement it though?

Collapse
 
thewhitewulfy profile image
Alok Prateek

Use liquid syntax to create index.json

Use a js function to get last post details from api and insert the string value inside a fixed dom structure.

I could do a POC as I get free, it might clarify things.

Collapse
 
thewhitewulfy profile image
Alok Prateek • Edited

dev.to/thewhitewulfy/blog-api-on-g...

See this on how to implement what I said that day :-)

Thread Thread
 
bhupesh profile image
Bhupesh Varshney 👾

this is super nice, nice post 👍