<?php
/**
 * The template for displaying archive pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package educrap
 */

get_header();
?>

	<section class="blog__area pt-115 pb-130 header__padding">
        <div class="container-fluid">
           <div class="row ">
                <div class="col-xxl-9 col-xl-9 col-lg-9 col-md-6">
                    <div class="row grid">
						<?php
						if ( have_posts() ) :

							/* Start the Loop */
							while ( have_posts() ) :
								the_post();
								/*
								 * Include the Post-Type-specific template for the content.
								 * If you want to override this in a child theme, then include a file
								 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
								*/
								get_template_part( 'template-parts/content', get_post_type() );
							endwhile;
							?>
							<nav class="pagination-outer mt-4" aria-label="Page navigation">
	                            <?php // Previous/next page navigation.
								the_posts_pagination( array(
								'prev_text'          => '<i class="fas fa-angle-double-left"></i>',
								'next_text'          => '<i class="fas fa-angle-double-right"></i>',
								) ); ?>
							</nav>
						<?php
						else :
							get_template_part( 'template-parts/content', 'none' );
						endif;
						?>  
                    </div>
                </div>
                <div class="col-xxl-3 col-xl-3 col-lg-3 col-md-6">
                    <div class="blog__item sidebar">
                       <?php get_sidebar(); ?>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php get_footer(); ?>