Revert "Revert "Make permalink parsing consistent with pages""

Jekyll