about summary refs log tree commit diff
path: root/new-post.sh
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-10-08 22:58:43 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-10-08 22:58:43 +0700
commitb213461abb7fc64931b417703ec0a903e9290ea7 (patch)
tree70ac0a796cc92ab2e0ce4976caf0af8c78f145d4 /new-post.sh
parenta69bd97c27dfb755735518735763a65c46c6cd0b (diff)
downloadblog-b213461abb7fc64931b417703ec0a903e9290ea7.tar.gz
Add script to make adding new post easier
Diffstat (limited to 'new-post.sh')
-rwxr-xr-xnew-post.sh3
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"