It works but I didn't even end up using it because Jekyll adds categories at the start of the url and I gave up and just did it by hand at that stage. sigh