This project automates the creation and management of your DSA blog posts.
- Create new post
pnpm new "Post Title" --tags="algorithms,python,dsa,interview"Generates a new .mdx file in data/posts/ and updates posts.json with metadata.
- Show last post
pnpm lastDisplays metadata of the most recently created post.
- Show post info by ID
pnpm post --id 16Shows metadata and file path for a post by its id.
- Slug is automatically generated from the title.
- Date defaults to today if not provided. Use
--date=YYYY-MM-DDto override. - Tags are optional but recommended for categorization. Example:
--tags="python,dsa,arrays". - ID increments automatically; do not edit manually.
Recommended workflow:
- Run
pnpm new ...to create a post.- Edit the generated
.mdxfile with your content.- Use
pnpm lastto check the latest post if needed.