-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (30 loc) · 894 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
This is the template for the post page
@package sunsettheme
*/
?>
<?php get_header(); ?>
<div class="primaryContainer">
<main class="main" id="main" role="main">
<div class="postsContainer">
<?php
if(have_posts()):
echo '<div class="pageLimit">';
while(have_posts()): the_post();
get_template_part('template-parts/content', get_post_format());
endwhile;
echo '</div>';
else:
echo '<h3>No posts to show.</h3>';
endif;
?>
</div>
<?php the_posts_pagination( array(
'prev_text' => 'Prev',
'next_text' => 'Next',
'screen_reader_text' => ' '
) ); ?>
</main>
</div>
<?php get_footer(); ?>