<?php get_header(); ?>

<?php echo kubelio_get_page_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

<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="site-content wp-block-column is-layout-flow">

				<?php if (have_posts()) : ?>

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

						<?php echo kubelio_get_pagination(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

						<?php wp_reset_postdata(); ?>

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

			</div>

			<div class="site-sidebar wp-block-column is-layout-flow">
				<?php get_sidebar(); ?>
			</div>
		</div>

	</div>
</section>

<?php get_footer(); ?>