Move rendering a post into its own macro