ported to Hakyll 4
fix parsing of references