- Install npm
- Run
npm install
in project root dir. - Run
npm run dev
to start developer server on localhost.
/app
: main folder contains app routes (about, posts, tags)/components
: react components/public/blogs
: static blog content (markdown files)/types
: custom datatypes/helpers
: helper methods/.github/workflows/nextjs.yml
: cicd to deploy site to github pages
- New RSS feed is generate on every build using
npm run build
- see /app/posts/[slug]/page.tsx
generateStaticParams()
method. (Kind of a hacky way tbh.. Can define a separate npm command)
- see /app/posts/[slug]/page.tsx
/app/posts/[slug]/page.tsx
-> is the file used for rendering all the static blog posts.[slug]
is a variable that is replaced with the slug param in the props for page.tsx.
- Similar structure followed for tags.
This project is licensed under the MIT License - see the LICENSE.md file for details