<?php
/**
 * The template for displaying all single posts
 *
 *
 * @subpackage castell
 * @since castell
 */
get_header();
?>
<div class="sp-100 bg-w">
	<div class="container">
		<div class="row">
			<div class="col-lg-8">
				<?php
				if ( have_posts() ) :
					while ( have_posts() ) :
						the_post();
						get_template_part( 'template-parts/content', 'single' );
					endwhile;?>
					<div class="pagination-blog mt-4 mb-60">
					<?php  castell_single_post_navigation();  ?>
					</div>
					  <?php
				else :
				get_template_part( 'template-parts/content', 'none' );
     			endif;
				if ( comments_open() || get_comments_number() ) :
				comments_template();
			endif; ?>
		</div>
		<?php get_sidebar(); ?>
		</div>
	</div>
</div>
<?php
get_footer();
?>