Move posts directory configuration to the config module.
Rearrange imports.
Update dependencies.