<section class="entry-content"> 
<?php  if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>	
        <div class="entry-date"><?php the_date('','<h4>','</h4>'); ?>
        </div>
            <h1 class="entry-title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                <article class="entry">
                     <?php if ( has_post_thumbnail() ) { 
                        the_post_thumbnail(); 
                        } else {
                	echo '<div></div>';
                        } ?>
                            <?php the_content(''); ?>
                                <p class="page-link"><?php wp_link_pages(); ?></p>
                                    <p><?php the_tags(); ?></p>
                                        <p class="post-edit-link"><?php edit_post_link(__('Edit', 'denim' ) ); ?></p>
               </article>
    </div>     
        <?php comments_template(); ?>

    <?php endwhile; ?>

        <?php else : ?>
                <article class="entry">
                <p><?php _e( 'No articles found', 'denim' ); ?></p>
                <p><?php get_search_form(); ?></p>
                </article>
    <?php endif; ?>
            <div class="navigation">
                <?php posts_nav_link('|','Previous','Next'); ?>
            </div>
</section>