<?php
/*
Template Name: Articles
*/
?>
<?php
/**
* The template for displaying the index.
*
* @package Rosalie
* @since Rosalie 1.0
*/
get_header(); ?>
<section id=”content” class=”site-content”>
<div class=”container”>
<div class=”row”>
<?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<div id=”primary” class=”content-area col-lg-8″>
<?php else: ?>
<div id=”primary” class=”content-area col-lg-12″>
<?php endif; ?>
<main id=”main” class=”site-main row” role=”main”>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘template-parts/content’, get_post_format() ); ?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( ‘template-parts/content’, ‘none’ ); ?>
<?php endif; ?>
</main><!– #main –>
</div><!– #primary –>
<?php if ( is_active_sidebar( ‘sidebar-1’ ) ) :
get_sidebar();
endif; ?>
</div><!– .row –>
</div><!– .container –>
</section><!– #main –>
<?php get_footer(); ?>