Add hugo_post.sh

This commit is contained in:
2024-06-12 14:20:29 +01:00
parent 7b1f3d0557
commit 2d7d16949a

7
hugo_post.sh Executable file
View File

@ -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"