generate_post_skeleton: Add success message

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-08-31 00:20:17 +05:30
parent 966590f911
commit bf1b718e91
No known key found for this signature in database
GPG Key ID: C2E74282C2133D62
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ function create_post() {
postslug="$(echo "${title}" | tr -dc '[:alnum:][:space:]\n\r' | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')"
filename="${postslug}.md"
printf "+++\ndate = \"%s\"\ntitle = \"%s\"\nslug = \"%s\"\ntags = []\ncategories = []\n+++\n" "${postdate}" "${title}" "${postslug}" > content/posts/"${filename}"
echo "content/posts/${filename} created!"
}
create_post "${@}"