diff --git a/new.sh b/new.sh index abedc91..6634f52 100644 --- a/new.sh +++ b/new.sh @@ -13,6 +13,8 @@ printf '%s' "Enter Category: " read -r category="$REPLY" +title="${title/\//}" + # Slug | lowercase, without accent mark lug=$(printf '%s' "${title// /-}") slug=$(echo "$lug" | sed 'y/áÁàÀãÃâÂéÉêÊíÍóÓõÕôÔúÚñÑçÇ/aAaAaAaAeEeEiIoOoOoOuUnNcC/' | sed -e 's/\(.*\)/\L\1/') @@ -35,4 +37,4 @@ printf '%s\n%s\n%s\n%s\n%s\n%s\n' "$o_author"\ "$o_date"\ "$o_slug"\ "$o_tag"\ - "$o_title" > "content/$slug.md" + "$o_title" > "content/articles/$slug.md"