forked from FernE97/html5-blank-slate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (29 loc) · 1.1 KB
/
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
<?php
/**
* Default Blog Template
*
*/
get_header(); ?>
<div class="content" role="main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article <?php post_class( 'group' ); ?> role="article">
<header>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<time datetime="<?php the_time( 'Y-m-d' ); ?>" pubdate><?php the_time( 'F j, Y' ); ?></time>
</header>
<?php the_excerpt(); ?>
</article>
<?php endwhile; ?>
<?php
$prev_link = get_previous_posts_link( __( 'Newer Entries »', 'h5bs' ) );
$next_link = get_next_posts_link( __( '« Older Entries', 'h5bs' ) );
if ( $prev_link || $next_link ) { ?>
<div class="page-nav">
<?php if ( $next_link ) echo '<div class="alignleft">' . $next_link . '</div>'; ?>
<?php if ( $prev_link ) echo '<div class="alignright">' . $prev_link . '</div>'; ?>
</div>
<?php } ?>
<?php endif; ?>
</div><!-- end content -->
<?php // get_sidebar(); ?>
<?php get_footer(); ?>