From c9e3d971c4a3cce0dd198381f3bb2cda3c11f319 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 12 May 2025 10:56:15 +0200 Subject: [PATCH] post.sh added --- post.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 post.sh diff --git a/post.sh b/post.sh new file mode 100755 index 0000000..5be3e7c --- /dev/null +++ b/post.sh @@ -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!"