shameless copy from jekyll repo