1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00
wp-theme/home.php

30 lines
685 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' );
}
?>
2016-01-16 19:37:04 +01:00
<nav class="pagination grid grid--gutters grid--half">
<div class="grid__col pagination__previous"><?php next_posts_link( 'Older posts' ); ?></div>
<div class="grid__col pagination__next"><?php previous_posts_link( 'Newer posts' ); ?></div>
</nav>
2016-01-16 18:46:45 +01:00
<?php
echo '</div>';
2016-01-16 18:46:45 +01:00
get_footer();
?>