index.php 645 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php get_header(); ?>
  2. <div id="primary" class="content-area">
  3. <main id="main" class="site-main" role="main">
  4. <?php
  5. if ( have_posts() ) :
  6. if ( is_home() && ! is_front_page() ) : ?>
  7. <header>
  8. <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
  9. </header>
  10. <?php
  11. endif;
  12. while ( have_posts() ) : the_post();
  13. get_template_part( 'template-parts/content', get_post_format() );
  14. endwhile;
  15. the_posts_navigation();
  16. else :
  17. get_template_part( 'template-parts/content', 'none' );
  18. endif; ?>
  19. </main><!-- #main -->
  20. </div><!-- #primary -->
  21. <?php
  22. get_sidebar();
  23. get_footer();