Merge pull request #1705 from helderco/new-doc
Add front matter to new docs
This commit is contained in:
commit
d48d484faf
@ -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 "$@"
|
||||||
|
Reference in New Issue
Block a user