diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 11:19:57 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 11:19:57 +0700 |
commit | 981e41a9473654c4ee754f86a78d54c8c5cad9b2 (patch) | |
tree | 26fa9a31a9f11ec709615f1c96b0c26f2dc70538 /newpost.sh | |
parent | d02a380caa30a804c927498e624927daa70b0b13 (diff) | |
download | blog-981e41a9473654c4ee754f86a78d54c8c5cad9b2.tar.gz |
Switch to Hugo, restructure the page
Diffstat (limited to 'newpost.sh')
-rwxr-xr-x | newpost.sh | 21 |
1 files changed, 0 insertions, 21 deletions
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 |