fix: slug generation for posts

before this, new slugs were being generated when a post is published which overrides previous one