<?php
/**
* index.php
*
* @author    Denis Franchi
* @package   Willer
*/

get_header();?>

<div class="container">
  <div class="row">
    <div id="primary" class=" willer-post-content-area pl-3 pr-3 col-xl-8 col-md-8 col-sm-12 col-xs-12">
      <main id="main" class="site-main container willer-index">
        <?php
        if ( have_posts() ) :
          if ( is_home() && ! is_front_page() ) :?>
          <header>
            <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
          </header>
        <?php endif;
        /* Start the Loop */
        while ( have_posts() ) : the_post();
        get_template_part( 'template-parts/content', get_post_type() );
      endwhile;
      else :
        get_template_part( 'template-parts/content', 'none' );
      endif;?>
    </main><!-- End #main -->
  </div><!-- End #primary -->
  <div class="col-xl-4 col-md-4 col-sm-12 col-xs-12 pr-3 pl-3 ">
    <?php get_sidebar();?>
  </div>
</div>
</div>
<!-- Load More Posts -->
<div class="container willer-load-more-posts">
<p><?php posts_nav_link(); ?></p>
</div>
<!-- General divide footer -->
<section class="willer-general-divide-footer">
	<div class="willer-bar-general-divide-footer"></div>
</section>
<?php get_footer();
