<?php
/**
 * Main blog index / posts page.
 *
 * @package ttsunsolar
 */

get_header();
?>
<div class="container content-layout content-layout--blog-home">
	<div class="site-main">
		<?php get_template_part( 'solarpanels/content/panel', 'breadcrumb' ); ?>
		<header class="page-header">
			<h1 class="page-title"><?php echo esc_html( ttsunsolar_get_content_title() ); ?></h1>
		</header>
		<?php if ( have_posts() ) : ?>
			<div class="blog-list">
				<?php
				while ( have_posts() ) :
					the_post();
					get_template_part( 'solarpanels/content/panel', 'content-row' );
				endwhile;
				?>
			</div>
			<?php ttsunsolar_posts_pagination(); ?>
		<?php else : ?>
			<p><?php esc_html_e( 'Nothing found.', 'ttsunsolar' ); ?></p>
		<?php endif; ?>
	</div>
	<?php get_sidebar(); ?>
</div>
<?php
get_footer();
