File: //home/bristolfilton.co.uk/public_html/wp-content/themes/fastblog/index.php
<?php
/**
* Index template
*
* Displays the blog posts in the blog index.
*
* @package FastBlog
* @author Jitesh Patil <jitesh.patil@gmail.com>
* @since 1.0.0
*/
get_header(); ?>
<!-- site-content -->
<div class="site-content">
<div class="container">
<div class="row">
<main class="main col-xs-12 col-md-8" role="main">
<?php
if ( is_home() && ! is_front_page() ) : ?>
<header class="page-header">
<h1 class="page-title"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content' );
}
the_posts_pagination( array(
'prev_text' => esc_html__( '«', 'fastblog' ),
'next_text' => esc_html__( '»', 'fastblog' ),
) );
} else {
get_template_part( 'template-parts/content', 'none' );
}
?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
</div><!-- /site-content -->
<?php
get_footer();