fix: automatically create directory for current year

This commit is contained in:
teuserer 2025-01-07 19:54:17 +01:00 committed by Max
parent 4bb6f0cba3
commit 108c1f6c42

View file

@ -27,6 +27,7 @@ git branch -D "events/$filename" > /dev/null 2>&1
git checkout -b "events/$filename" > /dev/null || exit 1
# Create the new file
mkdir "$root_dir/_events/$year"
cat > "$root_dir/_events/$year/$filename" <<EOF
---
layout: event