commit
77f7cf3f2d
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
date=$(date --rfc-3339=date)
|
date=$(date +%Y-%m-%d)
|
||||||
title=
|
title=
|
||||||
author=
|
author=
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ function main {
|
||||||
done
|
done
|
||||||
postname="./site/posts/$date-${title// /-}.md"
|
postname="./site/posts/$date-${title// /-}.md"
|
||||||
echo -e "---\ntitle: ${title}\nauthor: ${author}\ndescription: \n---" >> $postname
|
echo -e "---\ntitle: ${title}\nauthor: ${author}\ndescription: \n---" >> $postname
|
||||||
vim $postname
|
${VISUAL:-vim} $postname
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in a new issue