post.sh added

This commit is contained in:
root
2025-05-12 10:56:15 +02:00
parent c4bb0095c5
commit c9e3d971c4
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
POSTNAME=$1
if [[ -z $1 ]]; then
echo "needs argument: postname"
fi
hugo new content content/posts/${$POSTNAME}.md
echo "Create content/posts/${$POSTNAME}.md. Remember to set the draft flag correctly!"