home loop start

This commit is contained in:
2018-07-24 08:20:35 -05:00
parent 7e9e6854b4
commit b78029b4ca
15 changed files with 127 additions and 47 deletions

View File

@ -5,12 +5,31 @@
<a class="skip-nav sr-only" href="#main-content">Skip to main</a>
<?php get_template_part('globalHead'); ?>
<main id="main-content" role="main">
<?php get_template_part('loop'); ?>
<main id="main-content" class="container" role="main">
<div class="grid col-100 grid-gutter-lg">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
echo "<section>";
echo "<a href=\"".get_permalink()."\">";
the_title( '<h1>', '</h1>' );
echo "</a>";
the_excerpt();
echo "</section>";
}
get_template_part('pagination');
}
?>
</div>
</main>
<?php get_sidebar(); ?>
<?php // get_sidebar(); ?>
<?php get_footer(); ?>
</body>
</html>