This commit is contained in:
Ben Goldsworthy 2017-01-12 23:13:02 +00:00
parent f53ae91057
commit df05493b43
10 changed files with 520 additions and 619 deletions

View file

@ -10,8 +10,8 @@
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Ben_Goldsworthy
* @since Ben Goldsworthy 1.0
* @subpackage Omphaloskepsis
* @since Omphaloskepsis 1.0
*/
?>
<!DOCTYPE html>
@ -27,34 +27,29 @@
</head>
<body <?php body_class(); ?>>
<div id="page" class="site">
<div class="site-inner">
<div id="content" class="site-content">
<div id="primary" class="content-area">
<header class="page-header">
<h2>Blog</h2>
</header>
<main id="main" class="site-main index row" role="main">
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
// End the loop.
endwhile;
// If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<div id="content" class="site-content">
<header class="page-header">
<h1 id="page-title">Blog</h1>
</header>
<main id="main" class="site-main index row" role="main">
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'template-parts/content', get_post_format() );
// End the loop.
endwhile;
// If no content, include the "No posts found" template.
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>