1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00
wp-theme/home.php

27 lines
591 B
PHP
Raw Normal View History

<?php
2016-01-16 18:46:45 +01:00
get_header();
get_template_part( 'template', 'blogheader' );
2016-01-16 18:46:45 +01:00
echo '<div class="blog-column row row--content">';
2016-01-16 18:46:45 +01:00
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part( 'content', 'blog' );
}
}
2016-01-16 18:46:45 +01:00
else {
get_template_part( 'content', 'noposts' );
}
?>
<div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
<div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php
echo '</div>';
2016-01-16 18:46:45 +01:00
get_footer();
?>