From 83cd685cb32787bdc4a930f094d400d5c254f131 Mon Sep 17 00:00:00 2001 From: Helder Correia <174525+helderco@users.noreply.github.com> Date: Tue, 8 Mar 2022 11:32:10 -0100 Subject: [PATCH] Add front matter to new docs Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com> --- docs/new.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/new.sh b/docs/new.sh index b698fa3d..7ba49194 100755 --- a/docs/new.sh +++ b/docs/new.sh @@ -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 "$@"