DEV Community

Cover image for Portfolio API + GitHub Pages

Portfolio API + GitHub Pages

Bhupesh Varshney 👾 on May 22, 2019

Portfolio API + GitHub Pages = 🔥 So I accidentally figured out that we can return JSON response instead of the standard HTML when we acc...
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 👍

Collapse
 
michaeltharrington profile image
Michael Tharrington • Edited

This is super cool!

Quick note though, near the top of the post you say:

"I really liked the business card concept by Tierney Cyren"

but beneath it you link to:

Thinking this is just a typo and you might've meant to give the shoutout to Conlin Durbin.

Again, this is an awesome post. 👍

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

Thanks 😙
Well it's not a typo, I was not able to find any post from Tierney Cyren
But No doubt shout out to Conlin Durbin too 😋

Collapse
 
michaeltharrington profile image
Michael Tharrington • Edited

Haha, totally my bad! I see Tierney's tweet embedded in Conlin's post now. 🙃

Collapse
 
deciduously profile image
Ben Lovy

This is a neat idea, nice work! Might take a stab at something similar, thanks for the idea.

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

Happy to help 🤗

Collapse
 
sm0ke profile image
Sm0ke

funny

Collapse
 
tttfifo profile image
Todor Todorov

I know it is an old post, but I had the possibility to look at it just now.
Really nice idea! Thumbs up!

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

Thanks :)

Collapse
 
vipin profile image
vipin-27

Great! 👍🏼