added comments div, cleaned up file

This commit is contained in:
Jacob Haddon 2018-11-18 11:11:51 -05:00
parent 6d9a4195d8
commit b2e7e05f2c

View File

@ -6,13 +6,14 @@
<div class="blog-post">
<h2 class="blog-post-title"><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h2>
<p class="blog-post-meta"><?php the_date(); ?> by <?php the_author_link(); ?></p>
<?php the_content(); ?>
</div><!-- /.blog-post -->
<?php
// If comments are open or we have at least one comment, load up the comment template.
<div class="blog-comments">
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
?>
</div> <!-- blog comments -->