diff options
-rwxr-xr-x | newpost.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/newpost.sh b/newpost.sh index a30aafd..cc1025b 100755 --- a/newpost.sh +++ b/newpost.sh @@ -4,8 +4,9 @@ printf "Tags: " read tags printf "Categories: " read categories -name="_posts/$(date -I)-${title,,}" -name=${name// /-}.md +printf "Ref: " +read ref +name="_posts/$(date -I)-${ref}.md" _date=$(date "+%Y-%m-%d %T %z") echo $name echo "---" > "$name" @@ -14,5 +15,7 @@ echo "title: \"$title\"" >> "$name" echo "date: $_date" >> "$name" echo "tags: $tags" >> "$name" echo "categories: $categories" >>"$name" +echo "lang: en" >>"$name" +echo "ref: $ref" >>"$name" echo "---" >> "$name" vim $name |