some page templates
This commit is contained in:
24
index.php
24
index.php
@ -4,31 +4,15 @@
|
||||
<body>
|
||||
<a class="skip-nav sr-only" href="#main-content">Skip to main</a>
|
||||
<?php get_template_part('global-head'); ?>
|
||||
|
||||
<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 class="grid col-100">
|
||||
<?php get_template_part('loop'); ?>
|
||||
</div>
|
||||
|
||||
<?php get_template_part('pagination'); ?>
|
||||
|
||||
</main>
|
||||
|
||||
<?php // get_sidebar(); ?>
|
||||
<?php get_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user