-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhome.php
More file actions
45 lines (42 loc) · 1.4 KB
/
home.php
File metadata and controls
45 lines (42 loc) · 1.4 KB
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
37
38
39
40
41
42
43
44
45
<?php
global $wp_query;
get_header();
?>
<main id="content" class="l-blog">
<?php
get_template_part('template-parts/block/hero', '', [
'class' => 'hero--small',
'title' => __('Blog', 'base'),
]);
base_list_all_post_categories();
?>
<?php if (have_posts()) : ?>
<div class="l-post-list">
<div class="container">
<div class="l-post-list__inner">
<?php
while (have_posts()) :
the_post();
get_template_part('template-parts/card/post');
endwhile;
?>
</div>
</div>
<div class="container">
<?php if (get_the_posts_pagination()) : ?>
<div class="l-post-list__more">
<?php
the_posts_pagination([
'mid_size' => 2,
'prev_text' => __('Previous', 'base'),
'next_text' => __('Next', 'base'),
]);
?>
</div>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</main>
<?php
get_footer();