Automation Scripts
This directory contains automation scripts to make content management easier.
🚀 All-in-One Site Manager (Recommended)
The Complete Solution
- Bash version:
./site-manager.sh - Fish version:
./site-manager.fish
A comprehensive interactive menu system for managing all aspects of your website.
Usage:
./site-manager.sh # or ./site-manager.fish
Features:
- [1] 📝 Create Blog Post
- [2] 📚 Add Resource
- [3] 📅 Add Calendar Event
- [4] 🎤 Add Conference
- [5] 📸 Add Gallery Album
- [6] 💼 Add Career Entry
- [7] 🎓 Add Certification/Course
- [8] 🔍 Preview Site (Jekyll Serve)
- [9] 📤 Commit & Push Changes
- [0] ❌ Exit
Why use this:
- Interactive menu - no need to remember commands
- Handles all content types in one place
- Built-in preview and git workflow
- Consistent formatting across all additions
- Works in both bash and fish shells
Calendar Event Quick Flow (Option 3)
The calendar event flow now supports faster and UI-friendly input:
- Defaults start date to today
- Auto-fills end date when omitted
- Supports
typeandstatusused by the calendar UI filters - Optional
blog_postandgallerylinks for event cards - Runs
scripts/validate_data.rbautomatically after insert
Recommended values:
- Type:
conference,training,workshop,meetup,ctf,other - Status:
planned,confirmed,attending,completed,cancelled
Individual Scripts
Gallery Import
- Bash version:
./add_gallery.sh
Imports images from a local folder, creates a gallery directory, and appends a correctly formatted entry to _data/gallery.yml.
Usage:
./add_gallery.sh /path/to/photos
Examples
Using Site Manager
./site-manager.sh
# Select option 1 for blog post
Post title: Building Custom C2 Infrastructure
Post slug: custom-c2-infrastructure
Category: red-team
Tags: c2,infrastructure,sliver
Description: A guide to building scalable C2 infrastructure
# Then select option 8 to preview
# Finally select option 9 to commit and push
Adding Multiple Items
./site-manager.sh
# Add a resource (option 2)
Resource title: Sliver C2 Framework
URL: https://github.com/BishopFox/sliver
...
# Add a conference (option 4)
Conference name: DEF CON 34
Year: 2026
...
# Preview changes (option 8)
# Commit everything (option 9)
Tips
- Use site-manager: The all-in-one script is easier and more consistent
- Test locally first: Always preview (option 8) before pushing
- Descriptive content: Use clear titles and descriptions
- Consistent naming: Stick to established categories and tag conventions
- Regular commits: Commit after each major addition (option 9)
Workflow Example
Recommended workflow for adding content:
- Run
./site-manager.sh - Add your content (options 1-7)
- Preview locally (option 8) - check everything looks good
- Commit and push (option 9)
- Done! 🎉
Future Enhancements
Potential additions:
- Batch import from CSV/JSON files
- Automated image optimization for gallery
- Bulk photo upload with auto-naming
- Template customization options
- Analytics integration
- SEO metadata generator