Skip to content

anasak-dev/blog-in-astro

Repository files navigation

Create a Blog with Astro,Contentful & Vercel

Simple statically generated blog site created with Astro with data coming from contentful and hosted on vercel, all free!

alt text

Documentation

Fork or download the repo

npm install --> Initial
npm run dev --> to view your changes locally
npm run build --> your build will be output to folder public2

To update links for the header, go to BlogPostLayout component
inside src/components and update the data in BlogHeaderTop Component which is passed as a prop.

Documentation

Deployment

Astro has great documentation for the number of ways you can deploy the contentful based site on different platforms , I've used vercel personally, feel free to use something else.

  https://docs.astro.build/en/guides/cms/contentful/

Demo

https://portfolio-in-astro-master-v2.vercel.app/Create-blog-with-contentful-and-astro

🔗 Personal Links

portfolio linkedin twitter