<?php
/*
Template Name: Blog
*/

global $more;
$more = 0;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

get_header(); ?>

<div id="body" class="page-row page-row-expanded">
    <div class="container">
        <div id="content">
            <div class="entry">
                <h1><?php the_title(); ?></h1>
            </div>
            <?php query_posts('post_type=post&paged='.$paged); ?>
            <?php if (have_posts()) : ?>

                <?php while (have_posts()) : the_post(); ?>
                    <?php get_template_part('templates/content', 'post'); ?>
                <?php endwhile; ?>

                <?php get_template_part('templates/pagination', 'post'); ?>

            <?php else : ?>
                <?php get_template_part('templates/content', 'none'); ?>
            <?php endif; ?>

        </div>
        <!-- / content -->

    </div>
    <!-- / container -->
</div>

<?php get_footer(); ?>