Add front matter to new docs
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
parent
2a6962ddc8
commit
83cd685cb3
@ -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