adapted for jekyll 1.0.0