about summary refs log tree commit diff
diff options
context:
space:
mode:
-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"