<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) :
if ( is_home() && ! is_front_page() ) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
/* Start the Loop */
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile; ?>
<div class="nextpage">
<div class="pagination">
<?php echo the_posts_pagination (); ?>
</div>
</div>
<?php else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<nav id="site-navigation" class="main-navigation" role="navigation">
<ul>
<li class="selected"><a href="#home">Home</a></li>
<li><a href="#about">About us</a></li>
<li><a href="#team">Team</a></li>
<li><a href="#vehicle">Vehicle</a></li>
<li><a href="<?php echo get_page_link( 2 ); ?>">News</a></li>
<li><a href="#sponsors">Sponsors</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav><!-- #site-navigation -->
<?php get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) :
if ( is_home() && ! is_front_page() ) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile; ?>
<div class="nextpage">
<div class="pagination">
<?php echo the_posts_pagination (); ?>
</div>
</div>
<?php else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_sidebar();
get_footer();
<li><a href="<?php echo get_template_directory_uri(); ?>/news.php">News</a></li>
RewriteEngine On
RewriteBase /jrun/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /jrun/index.php [L]
# END WordPress