Merge pull request #1705 from helderco/new-doc

Add front matter to new docs
This commit is contained in:
Gerhard Lazu 2022-03-11 18:21:52 +00:00 committed by GitHub
commit d48d484faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,12 @@ function new() {
local filename="$next-$name.md" local filename="$next-$name.md"
echo "Creating $filename" echo "Creating $filename"
touch "$filename" cat <<- EOF > "$filename"
---
slug: /$next/$name
displayed_sidebar: europa
---
EOF
} }
new "$@" new "$@"