We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8abb773 commit c70a39eCopy full SHA for c70a39e
2 files changed
_config.yml
@@ -9,5 +9,6 @@ paginate_path: /blog/page:num
9
include:
10
- _s
11
exclude:
12
+ - bin
13
- Phakefile.php
14
- README.md
bin/publish-post
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env bash
2
+
3
+if [ $# -lt 1 ]; then
4
+ echo "usage: $0 _drafts/<path-to-file> [<new-slug>]"
5
+ exit 1
6
+fi
7
8
+if [ ! -f $1 ]; then
+ echo "draft not found: $1"
+if [ $# -gt 1 ]; then
+ fname="$2".md
15
+else
16
+ fname=${1/_drafts\//}
17
18
19
+mv $1 _posts/$(date +'%F')-$fname
0 commit comments