<?php get_header(); ?>

<div class="container">
	<div class="row">
		<div class="col-sm-8 articles">
			<section>
				<?php if ( have_posts() ) : ?>
				<?php while (have_posts()) : the_post(); ?>
				<article>
					<header>
						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
						<p class="meta">Posted <?php the_time('F jS, Y') ?></p>
					</header>
					<div class="content">
						<?php the_content('Read the rest of this entry »'); ?>
					</div>
					<footer>
						
					</footer>
				</article>
				<?php endwhile; ?>

				<nav class="pagination">
					<div class="wrap navigation">
						<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
						<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
					</div>
				</nav>

				<?php else : ?>
				<article>
					<header>
						<h2 class="center">Not Found</h2>
						<p class="center">Sorry, but you are looking for something that isn't here.</p>
					</header>
				</article>
				<?php endif; ?>			
			</section>
		</div>

		<?php get_sidebar(); ?>
		
	</div><!-- END ROW -->
</div><!-- END CONTAINER -->

<?php get_footer(); ?>