mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Add jekyll dev command.
This commit is contained in:
@@ -90,6 +90,7 @@ function jekyll {
|
|||||||
echo " post Create a new post to publish immediately."
|
echo " post Create a new post to publish immediately."
|
||||||
echo " publish Publish a draft post by name."
|
echo " publish Publish a draft post by name."
|
||||||
echo " edit Edit a post."
|
echo " edit Edit a post."
|
||||||
|
echo " dev Run local server with drafts and incremental."
|
||||||
;;
|
;;
|
||||||
draft)
|
draft)
|
||||||
if [ -z "${SLUG}" ] ; then
|
if [ -z "${SLUG}" ] ; then
|
||||||
@@ -139,6 +140,9 @@ function jekyll {
|
|||||||
fi
|
fi
|
||||||
${EDITOR} "${FILENAME}"
|
${EDITOR} "${FILENAME}"
|
||||||
;;
|
;;
|
||||||
|
dev)
|
||||||
|
command jekyll serve -D -I "$@"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
command jekyll "$@"
|
command jekyll "$@"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user