An open API service indexing awesome lists of open source software.

https://github.com/kien-ngo/git-based-blog-nextjs

A simple Git-based blogging app built with Next.js
https://github.com/kien-ngo/git-based-blog-nextjs

cms git-based-cms nextjs

Last synced: 3 months ago
JSON representation

A simple Git-based blogging app built with Next.js

Awesome Lists containing this project

README

          

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

## Adding articles
Simply create a new markdown file inside the `./src/articles` folder. The app will automatically scan for the file and display it to the users.
Make sure you set a proper title for said new file with the frontmatter format:
```markdown
---
title: New aritcle
tags:
author:
---
```

This also works brilliantly with the good ol' `getStaticProps` and `getStaticPaths`, or any SSG framework for that matter.