<?php

get_header();


// Start the loop.
while ( have_posts() ) :
	the_post();

	/*
	 * Include the Post-Format-specific template for the content.
	 * If you want to override this in a child theme, then include a file
	 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
	 */
	get_template_part( 'template-parts/content-page', get_post_format() );

	if ( comments_open() || get_comments_number() ) :
		comments_template();
	endif;
	// End the loop.
endwhile;


// If comments are open or we have at least one comment, load up the comment template.

if ( get_theme_mod( 'dedicated_sidebars_on_default_page_template', false ) ) :
	get_sidebar( 'page' );
else :
	get_sidebar();
endif;

?>

</div></div><!-- #content-wrapper,#content -->
<?php get_footer(); ?>
