diff --git a/content/articles/embracing-the-cloud.md b/content/articles/embracing-the-cloud.md index 3aea884..79d8201 100644 --- a/content/articles/embracing-the-cloud.md +++ b/content/articles/embracing-the-cloud.md @@ -1,8 +1,8 @@ --- -title: 'Embracing the Cloud: Transitioning to Serverless Architecture' -date: '2023-01-04' -slug: 'embracing-the-cloud' -description: 'In this article, Aarav Mehta explores the journey of transitioning traditional server-based applications to serverless architecture.' +title: "Embracing the Cloud: Transitioning to Serverless Architecture" +date: "2023-01-04" +slug: "embracing-the-cloud" +description: "In this article, Aarav Mehta explores the journey of transitioning traditional server-based applications to serverless architecture." tags: - javascript - css @@ -25,16 +25,16 @@ Cloud services like AWS Lambda, Azure Functions, and Google Cloud Functions offe ### A Step-by-Step Guide 1. Begin with a Pilot Project: - Select a non-critical system component to transition first. This will help you understand the intricacies of serverless environments without putting core operations at risk. +Select a non-critical system component to transition first. This will help you understand the intricacies of serverless environments without putting core operations at risk. 2. Understand the Limitations: - Serverless is not a silver bullet. Be aware of its limitations, such as cold starts (latency introduced when a function is invoked after a period of inactivity) and state management. Prepare to address these within your application logic. +Serverless is not a silver bullet. Be aware of its limitations, such as cold starts (latency introduced when a function is invoked after a period of inactivity) and state management. Prepare to address these within your application logic. 3. Adopt a DevOps Mindset: - Embrace the principles of DevOps. Implement continuous integration and delivery (CI/CD) pipelines to automate the deployment of serverless functions. +Embrace the principles of DevOps. Implement continuous integration and delivery (CI/CD) pipelines to automate the deployment of serverless functions. 4. Monitor and Optimize: - Leverage monitoring tools provided by cloud services to track the performance of your serverless functions. Optimize your code for better execution times and resource utilization. +Leverage monitoring tools provided by cloud services to track the performance of your serverless functions. Optimize your code for better execution times and resource utilization. 5. Challenges and Best Practices diff --git a/content/articles/evolution-of-AI.md b/content/articles/evolution-of-AI.md index 60805b1..8c8378c 100644 --- a/content/articles/evolution-of-AI.md +++ b/content/articles/evolution-of-AI.md @@ -1,10 +1,10 @@ --- title: The Evolution of AI in Web Development -date: '2023-01-03' -slug: 'evolution-of-ai' -previewImage: '/images/articles/article-preview.png' +date: "2023-01-03" +slug: "evolution-of-ai" +previewImage: "/images/articles/article-preview.png" draft: true -description: 'Aarav Mehta delves into the transformative role of Artificial Intelligence in the realm of web development. He examines how AI-driven technologies have begun to automate tasks such as code generation, user experience design, and even content creation.' +description: "Aarav Mehta delves into the transformative role of Artificial Intelligence in the realm of web development. He examines how AI-driven technologies have begun to automate tasks such as code generation, user experience design, and even content creation." tags: - css --- diff --git a/content/articles/building-real-time-collaboration.md b/content/articles/real-time-collaboration.md similarity index 96% rename from content/articles/building-real-time-collaboration.md rename to content/articles/real-time-collaboration.md index cc96806..dde4cb2 100644 --- a/content/articles/building-real-time-collaboration.md +++ b/content/articles/real-time-collaboration.md @@ -1,8 +1,8 @@ --- title: Building a Real-Time Collaboration Tool with WebSockets -date: '2023-01-03' -slug: 'building-real-time-collaboration' -previewImage: '/images/articles/article-preview.png' +date: "2023-01-03" +slug: "building-real-time-collaboration" +previewImage: "/images/articles/article-preview.png" description: "In a detailed walkthrough, Aarav Mehta shares the process of creating 'CodeCollab', a real-time collaboration tool built using WebSockets." tags: - css diff --git a/content/articles/test.md b/content/articles/test.md index 516c696..858d93e 100644 --- a/content/articles/test.md +++ b/content/articles/test.md @@ -1,8 +1,8 @@ --- -title: 'Markdown Test' -date: '2020-01-02' -slug: 'test' -description: 'Designing and building a website to connect quality photographers in Lagos, Nigeria' +title: "Markdown Test" +date: "2020-01-02" +slug: "test" +description: "Designing and building a website to connect quality photographers in Lagos, Nigeria" category: bug-fixes tags: - html @@ -146,14 +146,14 @@ Right aligned columns [link text](http://dev.nodeca.com) -[link with title](http://nodeca.github.io/pica/demo/ 'title text!') +[link with title](http://nodeca.github.io/pica/demo/ "title text!") Autoconverted link https://github.com/nodeca/pica (enable linkify to see) ## Images ![Minion](https://octodex.github.com/images/minion.png) -![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg 'The Stormtroopocat') +![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat") Like links, Images also have a footnote style syntax @@ -161,7 +161,7 @@ Like links, Images also have a footnote style syntax With a reference later in the document defining the URL location: -[id]: https://octodex.github.com/images/dojocat.jpg 'The Dojocat' +[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat" ## Plugins diff --git a/content/notes/getting-started-with-react-native.md b/content/notes/markdown-1.md similarity index 73% rename from content/notes/getting-started-with-react-native.md rename to content/notes/markdown-1.md index 7192bbf..be06227 100644 --- a/content/notes/getting-started-with-react-native.md +++ b/content/notes/markdown-1.md @@ -1,10 +1,10 @@ --- -title: 'Getting started with React Native' -date: '2021-01-01' -slug: 'getting-started-with-react-native' -description: 'Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page.' -previewImage: '/images/notes/markdown_1.jpg' -category: 'til' +title: "Getting started with React Nativ" +date: "2021-01-01" +slug: "getting-started-with-react-native" +description: "Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page." +previewImage: "/images/notes/markdown_1.jpg" +category: "til" tags: - css - html diff --git a/content/notes/two-forms-of-pre-rendering.md b/content/notes/markdown-2.md similarity index 76% rename from content/notes/two-forms-of-pre-rendering.md rename to content/notes/markdown-2.md index 49b0730..a8145af 100644 --- a/content/notes/two-forms-of-pre-rendering.md +++ b/content/notes/markdown-2.md @@ -1,9 +1,9 @@ --- -title: 'Two Forms of Pre-rendering' -date: '2021-02-01' -slug: 'two-forms-of-pre-rendering' -previewImage: '/images/notes/markdown_2.jpg' -description: 'Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page.' +title: "Two Forms of Pre-rendering" +date: "2021-02-01" +slug: "two-forms-of-pre-rendering" +previewImage: "/images/notes/markdown_2.jpg" +description: "Next.js has two forms of pre-rendering: Static Generation and Server-side Rendering. The difference is in when it generates the HTML for a page." category: bug-fixes tags: - javascript diff --git a/content/work/code-collab.md b/content/work/code-collab.md index 7aa2491..6652d98 100644 --- a/content/work/code-collab.md +++ b/content/work/code-collab.md @@ -1,10 +1,10 @@ --- title: Code Collab -date: '2020-04' -slug: 'code-collab' +date: "2020-04" +slug: "code-collab" selectedWork: false -description: 'An online platform for developers to pair program in real-time with an integrated code editor and video chat.' -previewImage: '/images/work/delight/delight-preview.png' +description: "An online platform for developers to pair program in real-time with an integrated code editor and video chat." +previewImage: "/images/work/delight/delight-preview.png" techStack: - Next.js - Typescript diff --git a/content/work/health-track.md b/content/work/health-track.md index 03da725..3c0b667 100644 --- a/content/work/health-track.md +++ b/content/work/health-track.md @@ -1,14 +1,14 @@ --- title: Health Track -date: '2019-06' -slug: 'health-track' +date: "2019-06" +slug: "health-track" selectedWork: true -description: 'A mobile app that integrates with wearable devices to track health metrics and provide personalized fitness advice.' -previewImage: '/images/work/bob/bob-preview.png' -techStack: - - Next.js - - Typescript - - Tailwindcss +description: "A mobile app that integrates with wearable devices to track health metrics and provide personalized fitness advice." +previewImage: "/images/work/bob/bob-preview.png" +techStack: + - Next.js + - Typescript + - Tailwindcss --- A mobile app that integrates with wearable devices to track health metrics and provide personalized fitness advice. diff --git a/content/work/task-buddy.md b/content/work/task-buddy.md index 39aed8d..04532ac 100644 --- a/content/work/task-buddy.md +++ b/content/work/task-buddy.md @@ -1,18 +1,18 @@ --- title: TaskBuddy -date: '2019-06' -slug: 'task-buddy' +date: "2019-06" +slug: "task-buddy" selectedWork: false -description: 'A collaborative to-do list app that uses real-time updates and machine learning to predict task completion times.' -previewImage: '/images/work/bob/bob-preview.png' -techStack: - - Next.js - - Typescript - - Tailwindcss - - Next.js - - Typescript - - Tailwindcss - - Next.js - - Typescript - - Tailwindcss +description: "A collaborative to-do list app that uses real-time updates and machine learning to predict task completion times." +previewImage: "/images/work/bob/bob-preview.png" +techStack: + - Next.js + - Typescript + - Tailwindcss + - Next.js + - Typescript + - Tailwindcss + - Next.js + - Typescript + - Tailwindcss --- diff --git a/utils/content.ts b/utils/content.ts index e3cb900..71deaef 100644 --- a/utils/content.ts +++ b/utils/content.ts @@ -94,8 +94,8 @@ export const getAllContentIds = (contentType: IContentType) => { // return the slug of all the content IDs return filenames.map((filename) => { const filePath = path.join(baseDir, filename); - const fileContent = fs.readFileSync(filePath, 'utf-8'); + const matterResult = matter(fileContent); return { @@ -144,7 +144,6 @@ export const getContentData = async ( const match = filenames.filter((filename) => { const filePath = path.join(contentTypeDirectory, filename); const fileContent = fs.readFileSync(filePath, 'utf-8'); - const matterResult = matter(fileContent); const { slug } = matterResult.data; return slug === id;