Mark Szymanski | c92a5f2 | 2010-10-23 10:57:31 -0500 | [diff] [blame] | 1 | # Open the root of your site in your favorite editor |
| 2 | |
| 3 | alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ." |
| 4 | |
| 5 | # Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog) |
| 6 | |
| 7 | alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ." |
| 8 | |
| 9 | # Build and locally serve the site |
| 10 | |
| 11 | alias testsite="cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto" |
| 12 | |
| 13 | # Build but don't locally serve the site |
| 14 | |
| 15 | alias buildsite="cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll" |
| 16 | |
| 17 | # Rsync the site to the remote server |
| 18 | |
Mark Szymanski | 2182027 | 2010-10-23 11:10:37 -0500 | [diff] [blame] | 19 | alias deploysite="cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT" |