Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.562 kb
(defvar *jekyll-post-dir* "~/Developer/sroccaserra.github.com/_posts/")
(defun jekyll:new-post (title)
(interactive "sTitle: ")
(let ((dashed-title (replace-in-string (downcase title) " " "-"))
(header (format "---\ntitle: %s\nlayout: post\n---\n\n{{ page.title }}\n================\n\n"
title)))
(find-file (concat *jekyll-post-dir*
(format-time-string "%Y-%m-%d-")
dashed-title
".md"))
(insert header)
(viper-insert nil)))
(provide 'jekyll)
Jump to Line
Something went wrong with that request. Please try again.