From 981e41a9473654c4ee754f86a78d54c8c5cad9b2 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 12 Apr 2021 11:19:57 +0700 Subject: Switch to Hugo, restructure the page --- newpost.sh | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 newpost.sh (limited to 'newpost.sh') diff --git a/newpost.sh b/newpost.sh deleted file mode 100755 index cc1025b..0000000 --- a/newpost.sh +++ /dev/null @@ -1,21 +0,0 @@ -printf "Blog title: " -read title -printf "Tags: " -read tags -printf "Categories: " -read categories -printf "Ref: " -read ref -name="_posts/$(date -I)-${ref}.md" -_date=$(date "+%Y-%m-%d %T %z") -echo $name -echo "---" > "$name" -echo "layout: post" >> "$name" -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 -- cgit 1.4.1