<?php get_header(); ?>

    <section class="main__article">
        <?php if ( have_posts() ) : ?>
            <?php
            while ( have_posts() ) :
                the_post();

                get_template_part( 'template-parts/content' );

            endwhile; ?>
        </section>
            <?php
            the_posts_pagination( array(
                'mid_size'  => 2,
                'prev_text' => __( 'Back', 'nexo' ),
                'next_text' => __( 'Next', 'nexo' ),
            ) );

        else :

        get_template_part( 'template-parts/content', 'none' );

    endif;
    ?>

<?php get_footer(); ?>