A WordPress theme I used to use on www.chriswiegman.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

49 lines
748 B

  1. <?php
  2. /**
  3. * The template for displaying the homepage
  4. *
  5. * @since 5.0.0
  6. *
  7. * @package CW\Theme\Templates\Home
  8. *
  9. * @author Chris Wiegman <chris@chriswiegman.com>
  10. */
  11. namespace CW\Theme\Templates\Home;
  12. use CW\Theme\Functions\Template_Tags;
  13. get_header();
  14. ?>
  15. <div id="primary" class="content-area">
  16. <main id="main" class="site-main" role="main">
  17. <?php
  18. if ( have_posts() ) {
  19. /* Start the Loop */
  20. while ( have_posts() ) {
  21. the_post();
  22. get_template_part( 'template-parts/content', get_post_format() );
  23. }
  24. Template_Tags\paging_nav();
  25. } else {
  26. get_template_part( 'template-parts/content', 'none' );
  27. }
  28. ?>
  29. </main><!-- #main -->
  30. </div><!-- #primary -->
  31. <?php
  32. get_sidebar();
  33. get_footer();