Add front matter to new docs

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia 2022-03-08 11:32:10 -01:00
parent 2a6962ddc8
commit 83cd685cb3
No known key found for this signature in database
GPG Key ID: C6490D872EF1DCA7

View File

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