📖 Quarto Blog Command Cheat Sheet
🔹 File & Post Management
# Count .qmd posts (top level only)
find posts -maxdepth 1 -type f -name "*.qmd" | wc -l
# Count posts including nested index.qmd
find posts -type f \( -name "*.qmd" -o -name "index.qmd" \) | wc -l
# List most recently edited posts
ls -lt posts/*.qmd | head -n 10
# Search for a keyword in posts
grep -ril "faithfulness" posts/*.qmd
# Word count for a specific post
wc -w posts/2025-08-09-faithfulness-of-god-in-creation.qmd
🔹 Quarto Commands
# Preview site locally
quarto preview
# Render entire site
quarto render
# Render a single post
quarto render posts/2025-08-09-faithfulness-of-god-in-creation.qmd
# Check project health
quarto check
🔹 Git & Version Control
# See file changes
git status
# Show modified files
git diff --name-only
# Stage, commit, and push changes
git add .
git commit -m "Add new post"
git push origin main
# View commit history
git log --oneline --graph --decorate --all
🔹 Site Cleanup & Debugging
# Remove rendered site
rm -rf _site
# Remove cached executions
rm -rf _freeze
# Find large files (>5MB)
find posts -type f -size +5M
🔹 Content Organization
# List all categories used
grep -hr "^categories:" posts | sort | uniq -c | sort -nr
# Show 10 longest posts
wc -w posts/*.qmd | sort -nr | head -n 10
# Find drafts
grep -rl "draft: true" posts/