<?php
/**
 * The main template file.
 *
 * @package ComRepair
 */

get_header(); ?>

<div class="container">

	<div class="main-wrap">
		<main id="main" class="main-content">

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

				<div class="archive-loop-wrap">
					<?php while ( have_posts() ) : the_post(); ?>

						<div class="archive-loop-item">
							<?php get_template_part( 'partials/content/content', 'preview' ); ?>
						</div><!-- .archive-loop-item -->

					<?php endwhile; ?>
				</div><!-- .archive-loop-wrap -->

				<?php comrepair_pagination(); ?>

			<?php else : ?>

				<?php get_template_part( 'partials/content/content', 'none' ); ?>

			<?php endif; ?>

		</main><!-- #main -->
	</div><!-- .main-wrap -->

	<?php get_sidebar(); ?>
    
        

</div><!-- .container -->

<?php
get_footer();
