forked from andersnoren/sullivan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
51 lines (30 loc) · 995 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php get_header();
global $paged;
$paged_val = $paged ? $paged : 1;
// Show the hero slider on the first page of the blog
if ( is_home() && $paged_val == 1 ) sullivan_hero_slider( 'blog' ); ?>
<main id="site-content">
<div class="section-inner split">
<div class="content">
<?php if ( is_archive() ) : ?>
<header class="archive-header">
<div>
<h6 class="subheading"><?php echo sullivan_get_archive_title_prefix(); ?></h6>
<h3 class="archive-title"><?php the_archive_title(); ?></h3>
<?php the_archive_description(); ?>
</div>
</header>
<?php endif;
if ( have_posts() ) : ?>
<div class="posts" id="posts">
<?php while ( have_posts() ) : the_post();
get_template_part( 'content-post' );
endwhile; ?>
</div><!-- .posts -->
<?php get_template_part( 'pagination' ); ?>
<?php endif; ?>
</div><!-- .content -->
<?php get_sidebar(); ?>
</div><!-- .section-inner -->
</main>
<?php get_footer(); ?>