Batch Date Addition
Drafts and Bulk Publishing
Using the _drafts Folder
Add a _drafts folder to your site root to store posts you are not ready to publish. Posts in this folder do not require a date in the filename and will not appear on your live site.
Filename Requirements
All posts in the _posts folder must follow this format:
YYYY-MM-DD-post-title.md
Files without a date prefix will be ignored by Jekyll and will not publish.
Publishing Drafts
When you are ready to publish drafts:
- Save all unfinished posts in
_drafts/(no date needed) - Run
add-dates.bat - The script will add todayβs date to each filename and move them to
_posts/ - Build and upload your site
Quick Reference
| Folder | Filename Format | Publishes? |
|---|---|---|
_drafts/ |
post-title.md |
No |
_posts/ |
YYYY-MM-DD-post-title.md |
Yes |