added support content formats

This commit is contained in:
2020-03-13 18:23:34 +08:00
parent 98cd6ce639
commit d990c388b8
3 changed files with 25 additions and 4 deletions

View File

@@ -3,10 +3,8 @@
if ( have_posts() ) {
the_post();
echo '<div class="content">';
echo "<h1>", the_title(), "</h1>";
the_content();
echo '</div>';
get_template_part( 'template/post/content', get_post_format() );
}
get_footer();