copying from jekyll-now by @barryclark