<?php
/**
 * Template Name: Blog
 */
get_header(); ?>
<!-- content begin -->
<div id="content">
    <div class="container">
        <div class="row">

            <div class="<?php archi_content_columns(); ?>">
                <ul class="blog-list">
                    <?php if(have_posts()) : ?>  
                    <?php 
                        $args = array(    
                          'paged' => $paged,
                          'post_type' => 'post',
                          );
                        $wp_query = new WP_Query($args);
                        while ($wp_query -> have_posts()): $wp_query -> the_post();                         
                        get_template_part( 'content', get_post_format() ) ; 
                    ?> 
                    <?php endwhile;?> 
        
                    <?php else: ?>
                    <h1><?php _e('Nothing Found Here!', 'archi'); ?></h1>
                    <?php endif; ?>        
                </ul>

                <div class="pagination text-center ">
                    <ul class="pagination">
                        <?php echo archi_pagination(); ?>
                    </ul>
                </div>
            </div> 

            <?php get_sidebar();?>     

        </div>
    </div>

</div>
<!-- content close -->
<?php get_footer(); ?>