-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
27 lines (24 loc) · 1.19 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
<?php get_header(); ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<time datetime="<?php the_time('Y-m-d') ?>" pubdate><?php the_time('F jS, Y') ?></time> <!-- by <?php the_author() ?> -->
<?php if (has_post_thumbnail()) { ?>
<a href="<?php the_permalink() ?>">
<?php
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium', false, '' );
echo '<img src="'. $src[0] .'" />';
?>
</a>
<?php } ?>
<?php the_content('Read the rest of this entry »'); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</article>
<?php endwhile; ?>
<?php if (show_posts_nav()) : ?>
<nav class="nextPrevLinks">
<?php my_paginate_links(); ?>
</nav>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>