From b213461abb7fc64931b417703ec0a903e9290ea7 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Fri, 8 Oct 2021 22:58:43 +0700 Subject: Add script to make adding new post easier --- new-post.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 new-post.sh 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" -- cgit 1.4.1