Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| #!/bin/bash | |
| # About: Bash script to create new Jekyll posts | |
| # Author: @AamnahAkram | |
| # URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12 | |
| # Description: This is a more advanced version of the script which can | |
| # - take options | |
| # - has color coded status messages | |
| # - improved code | |
| # - lowercase permalinks | |
| # - usage message |
| mkcd () { | |
| mkdir "$1" | |
| cd "$1" | |
| } |
Install Package Control for easy package management.
Ctrl+`
I got tired on creating new files manually for each new post a write so I put together this little command line task with Thor.
It creates a new file in the _posts directory with today’s date, parses the parameters to command as the post’s title and adds that as a slug to the new file. It then writes a default yaml template to the file (as specified in the script).
Running thor jekyll:new New and shiny post will for example create the file _posts/2012-12-28-new-and-shiny-post.markdown, populate it with an yaml template and finally open the file in my favorite editor.
Add the following to your Gemfile:
| \documentclass[]{article} | |
| \usepackage{amssymb,amsmath} | |
| \usepackage{ifxetex,ifluatex} | |
| \ifxetex | |
| \usepackage{fontspec,xltxtra,xunicode} | |
| \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} | |
| \newcommand{\euro}{€} | |
| \else | |
| \ifluatex | |
| \usepackage{fontspec} |
| \providecommand{\tightlist}{% | |
| \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |