mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-18 12:00:12 +01:00
fix: automatically create directory for current year
This commit is contained in:
parent
4bb6f0cba3
commit
108c1f6c42
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
|
git checkout -b "events/$filename" > /dev/null || exit 1
|
||||||
|
|
||||||
# Create the new file
|
# Create the new file
|
||||||
|
mkdir "$root_dir/_events/$year"
|
||||||
cat > "$root_dir/_events/$year/$filename" <<EOF
|
cat > "$root_dir/_events/$year/$filename" <<EOF
|
||||||
---
|
---
|
||||||
layout: event
|
layout: event
|
||||||
|
|
Loading…
Reference in a new issue