Getting Started with the New Post Tool
This is a guide to using the new automated post creation tool for this blog.
Quick Start
Creating a new blog post is now as simple as running:
python3 new_post.py "Your Post Title"
The tool will:
- Generate a properly formatted post file
- Add all the necessary Jekyll front matter
- Create a permalink automatically
- Open the file in your editor
Features
Automatic Slug Generation
The tool converts your title into a URL-friendly slug:
- “My New Post” becomes
my-new-post - Handles special characters and multiple spaces
Front Matter
Every post includes:
layout: post- Uses the post layouttitle- Your post title in quotesdate- Current date and time with timezonecategories- Space-separated categories (default: “ai”)permalink- Auto-generated from title
Custom Options
You can customize the post creation:
# Custom categories
python3 new_post.py "My Post" --categories "ai ml research"
# Custom permalink
python3 new_post.py "My Post" --permalink "/custom-url/"
# Skip editor (for automation)
python3 new_post.py "My Post" --no-edit
Workflow
- Run the script with your post title
- Add content in your editor
- Save and close
- Commit and push the changes
Benefits
- Speed: Create posts in seconds
- Consistency: All posts follow the same format
- Accuracy: No typos in front matter
- Convenience: Automatic permalink generation
Happy blogging!