Move post components to directives