diff --git a/hugo_post.sh b/hugo_post.sh new file mode 100755 index 0000000..39ec03f --- /dev/null +++ b/hugo_post.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# Simple script to create a new post in Hugo in the format "/content/posts/Post Title/index.md" as opposed to the default "/content/posts/Post Title.md" + +title="$1" + +mkdir "./content/posts/$title" +hugo new content "posts/$title/index.md"