blob: 6b0ba886fd978864173817286feb9e5dc138b0d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
set -ue
cd ~/web/nwww
if [ ! -f content/blog/"$1".md ]
then
printf -- '---\ntitle: \ndate: %s\n---\n' "$(date '+%Y-%m-%d')" >> content/blog/"$1".md
fi
$EDITOR content/blog/"$1".md
|