-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
47 lines (35 loc) · 1.09 KB
/
home.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
37
38
39
40
41
42
43
44
45
46
47
<?php get_header(); ?>
<main>
<section>
<header id="header-section" class="header-archive" itemprop="headline">
<div class="article-header-content">
<h1 class="title">Tutorials</h1>
</div>
</header>
<section id="journal">
<div class="inline-grid">
<div class="js-masonry" id="container">
<span class="gutter-sizer"></span>
<span class="col-12 col-s-6 col-m-4 grid-sizer"></span>
<?php if ( have_posts() ) : ?>
<?php while( have_posts()): the_post(); ?>
<?php get_template_part('partials/archive-content'); ?>
<?php endwhile; ?>
</div>
</div>
</section>
<?php
// Previous/next page navigation.
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
'next_text' => __( 'Next page', 'twentyfifteen' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
) );
// If no content, include the "No posts found" template.
else :
get_template_part( 'content', 'none' );
endif;
?>
</section>
</main>
<?php get_footer(); ?>