add blogging section using Contentlayer🚀 (#72)
* setup contentlayer
* ignore output generated by contentlayer
* define blog type and add plugins
* add path alias for contentlayer
* install mdx plugins
* add sample blog
* make /blog and /blog/[slug] public
* reduce opacity for background
* update next config(.mjs to .js) and update contentlayer
* implement blogpage UI
* define MDX components
* define custom fuction to get only particular fields for a post
* add typgraphy plugin and sample blog
* improve styling for code snippets
* add blog author
* refactor blog components
Changes:
- Add OG image to each blog using /api/og
- Reuse back-button component
- Put all components related to contentlayer in separate folder
- Change file names to use kebab-case
- Use default styling for html tags used in a post
authored by