Overview
NextJS App Router Blog is a simple blog built with NextJS 13 App Router and Typescript. It utilizes markdown files to create blog posts and includes features such as parsing markdown files, displaying blog posts on the home page and their own page, sorting blog posts by date, and styling blog posts using TailwindCSS and Sass.
Features
Use markdown files to create blog posts: The blog allows users to create blog posts using markdown files, making it easy to create content with formatting.
Parse markdown files using gray-matter and remark: The app uses gray-matter and remark to parse markdown files, allowing for easy extraction of metadata and conversion of markdown to HTML.
Display blog posts on home page and on their own page: The blog posts are displayed on the home page in a list format, and users can also click on individual blog posts to view them on their own page.
Sort blog posts by date: The blog posts are sorted by date, allowing users to easily find the most recent posts.
Style blog posts using TailwindCSS and Sass: The blog posts are styled using TailwindCSS and Sass, allowing for easy customization of the appearance.
Installation
To run the NextJS App Router Blog locally, follow these steps:
Clone the repository:
git clone <repository>Change into the repository directory:
cd <repository>Install the dependencies:
npm installRun the app in development mode:
npm run dev
Summary
NextJS App Router Blog is a simple blog built with NextJS 13 App Router and Typescript. It allows users to create blog posts using markdown files and includes features such as parsing markdown files, displaying blog posts on the home page and their own page, sorting blog posts by date, and styling blog posts using TailwindCSS and Sass. It is easy to install and run locally, making it a practical choice for those looking to create a blog using NextJS.