diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-10-08 22:58:43 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-10-08 22:58:43 +0700 |
commit | b213461abb7fc64931b417703ec0a903e9290ea7 (patch) | |
tree | 70ac0a796cc92ab2e0ce4976caf0af8c78f145d4 | |
parent | a69bd97c27dfb755735518735763a65c46c6cd0b (diff) | |
download | blog-b213461abb7fc64931b417703ec0a903e9290ea7.tar.gz |
Add script to make adding new post easier
-rwxr-xr-x | new-post.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/new-post.sh b/new-post.sh new file mode 100755 index 0000000..97870d8 --- /dev/null +++ b/new-post.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Shell script to create a new post +hugo new "posts/$(date --iso-8601)-$1.md" |