Extract slug into method, move date outside of post