Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit edcb9f3

Browse files
committedJan 20, 2022
Add script to have Hugo create a new post
1 parent fea8974 commit edcb9f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎new-post.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/bash
2+
if [ "$*" == "" ]; then
3+
echo "Please provide post name"
4+
exit 1
5+
fi
6+
hugo new --kind post-bundle posts/$1

0 commit comments

Comments
 (0)
Please sign in to comment.