fix: automatically create directory for current year

This commit is contained in:
teuserer 2025-01-07 19:54:17 +01:00
parent 77b6ae5d11
commit 5334d45bfc

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