Files
website/post.sh
T
2026-03-29 17:20:43 +02:00

13 lines
225 B
Bash
Executable File

#!/bin/bash
POSTNAME=$1
if [[ -z $1 ]]; then
echo "needs argument: postname"
exit 1
fi
hugo new content content/posts/${POSTNAME}.md
echo "Create content/posts/${POSTNAME}.md. Remember to set the draft flag correctly!"