www.iger.events/new-post.sh

12 lines
143 B
Bash
Raw Normal View History

2022-07-08 04:16:32 +02:00
#!/bin/sh
set -e
if [ -z "$1" ]
then
echo "usage: $0 <name>" >&2
exit 1
fi
hugo new "content/$(date '+%Y-%m-%d')-${1//[^[:alnum:]-_]}.md"