<?php get_header(); ?>


<div class="container">
<div id="main-grid" class="row">

	<div id="primary" class="content-area col-md-8">
            <main id="main" class="site-main" role="main">
            
            
                        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                        <div class="post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                            <h1 class="title"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                            
                             <?php if ( has_post_thumbnail() ) : ?>
			<div class="post-thumbnail">
				<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">

				<?php the_post_thumbnail( 'post-thumbnail' ); ?>
				</a>
			</div><!-- .post-thumnail -->
		<?php endif; ?>
                        <div class="entry">
                        <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
                        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
                            <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
                            </div>
                            </div>
                           
                       <?php comment_form(); ?>
                       <?php comments_template(); ?> 

                        
                        <?php endwhile; else: ?>
                        <p>Sorry, no posts matched your criteria.</p>
                        <?php endif; ?>
            </main><!-- #main -->
	</div><!-- #primary -->
    
    <div id="secondary" class="widget-area col-md-4">
        <?php get_sidebar(); ?>
    </div>
		
</div><!-- .row -->
</div><!-- .container -->

<?php get_footer(); ?>