Skip to content

Commit 2722674

Browse files
committed
refactor: Replace Contentlayer with Velite for markdown handling
1 parent 499e2c5 commit 2722674

File tree

54 files changed

+3826
-4068
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3826
-4068
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ yarn-error.log*
3434
*.tsbuildinfo
3535
next-env.d.ts
3636

37-
.contentlayer
37+
.velite
3838

3939
/public/robots.txt
4040
/public/sitemap.xml

README.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Next.js 13 Blog Tutorial: Build SEO Optimized Personal Blog with Next.js, Contentlayer, and Tailwind CSS 🔥
1+
# Next.js Blog Tutorial: Build SEO Optimized Personal Blog with Next.js, Contentlayer, and Tailwind CSS 🔥
22

33
![GitHub stars](https://img.shields.io/github/stars/codebucks27/Nextjs-tailwindcss-blog-template?style=social&logo=ApacheSpark&label=Stars)  
44
![GitHub forks](https://img.shields.io/github/forks/codebucks27/Nextjs-tailwindcss-blog-template?style=social&logo=KashFlow&maxAge=3600)  
@@ -16,6 +16,8 @@ https://youtu.be/1QGLHOaRLwM <br />
1616

1717
Checkout My Personal blog: [DevDreaming](https://devdreaming.com/)<br />
1818

19+
> NOTE: In the youtube tutorial I have used contentlayer for the markdown files. Since contentlayer is not actively maintained, I have switched to Velite for the markdown files. If you want to checkout the contentlayer please switch to the contentlayer branch.
20+
1921

2022
### ⭐DO NOT FORGET TO STAR THIS REPO⭐
2123

@@ -55,35 +57,3 @@ For more Images please check the [project images](https://github.com/codebucks27
5557

5658
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
5759

58-
## Getting Started
59-
60-
First, run the development server:
61-
62-
```bash
63-
npm run dev
64-
# or
65-
yarn dev
66-
# or
67-
pnpm dev
68-
```
69-
70-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
71-
72-
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
73-
74-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
75-
76-
## Learn More
77-
78-
To learn more about Next.js, take a look at the following resources:
79-
80-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
81-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
82-
83-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
84-
85-
## Deploy on Vercel
86-
87-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
88-
89-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

content/automating-repetitive-tasks-productivity-hacks-for-developers/index.mdx renamed to content/blogs/automating-repetitive-tasks-productivity-hacks-for-developers/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: "Automating Repetitive Tasks: Productivity Hacks for Developers"
33
description: How to deploy your Next.js apps on Vercel.
4-
image: "../../public/blogs/emile-perron-xrVDYZRGdw4-unsplash.jpg"
5-
publishedAt: "2023-01-01"
6-
updatedAt: "2023-01-01"
4+
image: emile-perron-xrVDYZRGdw4-unsplash.jpg
5+
publishedAt: 2024-05-08 13:00:00
6+
updatedAt: 2024-05-08 13:00:00
77
author: "codebucks"
88
isPublished: true
99
tags:
1010
- productivity
11+
slug: automating-repetitive-tasks-productivity-hacks-for-developers
1112
---
1213

1314
Until now, trying to style an article, document, or blog post with Tailwind has been a tedious task that required a keen eye for typography and a lot of complex custom CSS.
@@ -66,7 +67,7 @@ Something a wise person once told me about typography is:
6667
It's probably important that images look okay here by default as well:
6768

6869
<Image
69-
src="/blogs/c-d-x-PDX_a_82obo-unsplash.jpg"
70+
src="/blogs/c-d-x-PDX_a_82obo-unsplash-55192b8a.jpg"
7071
width="718"
7172
height="404"
7273
alt="Image"

content/best-practices-for-writing-clean-and-maintainable-code/index.mdx renamed to content/blogs/best-practices-for-writing-clean-and-maintainable-code/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: "Best Practices for Writing Clean and Maintainable Code"
33
description: How to deploy your Next.js apps on Vercel.
4-
image: "../../public/blogs/roman-synkevych-vXInUOv1n84-unsplash.jpg"
5-
publishedAt: "2023-01-02"
6-
updatedAt: "2023-01-02"
4+
image: roman-synkevych-vXInUOv1n84-unsplash.jpg
5+
publishedAt: 2024-05-08 13:00:00
6+
updatedAt: 2024-05-08 13:00:00
77
author: "codebucks"
88
isPublished: true
99
tags:
1010
- code quality
11+
slug: best-practices-for-writing-clean-and-maintainable-code
1112
---
1213

1314

@@ -68,7 +69,7 @@ Something a wise person once told me about typography is:
6869
It's probably important that images look okay here by default as well:
6970

7071
<Image
71-
src="/blogs/c-d-x-PDX_a_82obo-unsplash.jpg"
72+
src="/blogs/c-d-x-PDX_a_82obo-unsplash-55192b8a.jpg"
7273
width="718"
7374
height="404"
7475
alt="Image"

content/building-progressive-web-apps-bridging-the-gap-between-web-and-mobile/index.mdx renamed to content/blogs/building-progressive-web-apps-bridging-the-gap-between-web-and-mobile/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
title: "Building Progressive Web Apps: Bridging the Gap Between Web and Mobile"
33
description: "Integrating mindfulness practices helps developers cultivate present-moment awareness, fostering focus, problem-solving, and work-life balance."
4-
image: "../../public/blogs/charlesdeluvio-cZr2sgaxy3Q-unsplash.jpg"
5-
publishedAt: "2023-01-04"
6-
updatedAt: "2023-01-04"
4+
image: charlesdeluvio-cZr2sgaxy3Q-unsplash.jpg
5+
publishedAt: 2025-01-01 13:00:00
6+
updatedAt: 2025-01-01 13:00:00
77
author: "codebucks"
88
isPublished: true
99
tags:
1010
- web development
11+
slug: building-progressive-web-apps-bridging-the-gap-between-web-and-mobile
1112
---
1213

1314

@@ -68,7 +69,7 @@ Something a wise person once told me about typography is:
6869
It's probably important that images look okay here by default as well:
6970

7071
<Image
71-
src="/blogs/c-d-x-PDX_a_82obo-unsplash.jpg"
72+
src="/blogs/c-d-x-PDX_a_82obo-unsplash-55192b8a.jpg"
7273
width="718"
7374
height="404"
7475
alt="Image"

0 commit comments

Comments
 (0)