DEV Community

loading...
Cover image for Publish Latest Dev.To Post to Portfolio Site

Publish Latest Dev.To Post to Portfolio Site

wizlee profile image Wiz Lee ・1 min read

"We are one", says wizlee.dev to dev.to/wizlee.

That's 'humanification' of my portfolio site after gaining the ability to list my posts from dev.to ;)

Due to the ground work done in Ema Suriano's gatsby-starter-mate, after the work done in the previous post only the following are needed:

  1. Get data from GraphQL query using Gatsby's useStaticQuery.
  2. Add empty response in case there's no user defined in Contentful CMS.
  3. Replace the original Medium posts integration with Dev posts mainly by modifying src/sections/Writing.ts & src/components/Post.ts

Next up, figuring out how to trigger Netlify deploy when a new dev article is posted!

Discussion (2)

pic
Editor guide
Collapse
luispinheiro profile image
Luis Pinheiro

Nice portfolio

Collapse
wizlee profile image
Wiz Lee Author

Thanks! The starter that Ema Suriano provided makes it easier for customisation