<?php get_header(); ?>

<?php echo rt_get_page_title() ?>

<section class="site-wrapper has-global-padding">
    <div class="site-container">

        <div class="wp-block-columns is-layout-flex is-stacked-on-tablet md:gap-60">

            <div class="wp-block-column is-layout-flow">
                <?php if (have_posts()) : ?>

                    <div class="rt-posts">
                        <div id="post_archive" class="rt-post-archive grids grids-1 md:grids-2">
                            <?php while (have_posts()) : the_post(); ?>
                                <?php rt_get_template_part('post/post'); ?>
                            <?php endwhile ?>
                        </div>

                        <?php echo rt_get_pagination(); ?>

                        <?php wp_reset_postdata(); ?>

                    </div>
                <?php else : ?>
                    <?php rt_get_template_part('post/post-none'); ?>
                <?php endif ?>

            </div>

            <div class="wp-block-column is-layout-flow" style="flex-basis:var(--wp--custom--sidebar--width)">
                <?php get_sidebar() ?>
            </div>
        </div>

    </div>
</section>

<?php get_footer(); ?>