A simple personal landing page with a blog, built on the Next.js Pages Router tutorial and customized to my liking.
- I was doing the official Next.js Pages Router Tutorial and then thought i can modify and use it, so i modified the layout, styling, and structure to fit my use (landing page, dark/light theme toggle, Linktree-style links, and a blog Page).
-
Fork this repository on GitHub (or) Directly Clone the Repository.
-
Clone the project locally:
git clone https://github.com/<your-username>/landing-page.git cd landing-page
-
Install dependencies and run the dev server:
- Node.js 18+ recommended
- Install and run:
npm install npm run dev
- Profile image: replace
public/images/profile.jpg. - Name and site title: edit
components/layout.js(nameandsiteTitle). - Landing page intro and links: edit
pages/index.js. - Favicon: replace
public/favicon.ico. - Theme colors: adjust CSS variables in
styles/global.css. - Blog content: add markdown files under
blog/posts/. - Images in posts: put images in
public/and reference as.
-
Posts live as Markdown files in the
blog/posts/folder (notpages/posts). -
Each post needs front matter at the top:
--- title: "My Post Title" date: "2025-08-15" --- Your content here in Markdown. -
The blog index is at
/blog. Each markdown file becomes a post at/blog/posts/[id], where[id]is the filename (without.md).
- Build with
npm run buildand deploy to your host of choice (I Used Vercel). Importing the repo into Vercel auto-detects Next.js.
- Based on the official Next.js Pages Router Tutorial and then customized by me.