Check out Connect your theme to plugin-outlets to inject templates with custom content and maybe Beginner’s guide to developing Discourse Themes