Skip to content

Commit bf79f03

Browse files
committed
add new draft script
1 parent 3930eb0 commit bf79f03

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

template/YYYY-MM-DD-issue-N.md renamed to new_draft.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
==TEMPLATE==
2-
<!-- remove this line -->
3-
---
1+
#!/bin/bash
2+
3+
ISSUE="_drafts/$1-issue-$2.md"
4+
5+
touch $ISSUE
6+
7+
echo "---
48
layout: post
5-
title: ! 'Issue #'
6-
author: jsq
9+
title: ! 'Issue #$2'
10+
author: $3
711
---
812
913
> TODO: comment
@@ -30,6 +34,4 @@ author: jsq
3034
3135
> TODO
3236
33-
### Finally
34-
35-
> TODO
37+
### Finally" >> $ISSUE

0 commit comments

Comments
 (0)