<?php get_header(); ?>
<div class="container">
	<div class="row">
		<!-- Main Content -->
		<div class="col-md-8 col-xs-12">
			<h2 class="page-header"><?php wp_title(''); ?></h2>
			<div class="blog-posts">
				<?php get_template_part( 'content', get_post_format() ); ?>
			</div>
		</div>
		<?php get_sidebar(); ?>
	</div>
</div>
<?php get_footer(); ?>
<?php get_header(); ?>
<div class="container">
	<div class="row">
		<!-- Main Content -->
			<?php if ( is_active_sidebar('blog_sidebar') ) {
					echo ('<div class="col-md-8 col-xs-12">');
				}
				else {
					echo ('<div class="col-md-8 col-xs-12 col-md-offset-2">');
				}
			?>
			<h2 class="page-header"><?php wp_title(''); ?></h2>
			<div class="blog-posts">
				<?php get_template_part( 'content', get_post_format() ); ?>
			</div>
		</div>
		<?php get_sidebar(); ?>
	</div>
</div>
<?php get_footer(); ?>
Make blog one column if sidebar isn't active.
Make blog one column if sidebar isn't active.
