mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 20:10:12 +01:00
fix: automatically create directory for current year
This commit is contained in:
parent
77b6ae5d11
commit
5334d45bfc
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue