<?php
/*
Template Name: Blog Home
*/
?>
<?php get_header(); ?>
<?php query_posts("posts_per_page=5&post_type=post");
// set $more to 0 in order to only get the first part of the post
global $more;
$more = 0;
?>
<div id="blog">
<div id="article">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div <?php post_class('excerpt'); ?> id="post-<?php the_ID(); ?>">
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<h3>Posted on: <?php the_time('F jS, Y'); ?> by <?php the_author(); ?> <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments-link', ''); ?></h3>
<div class="entry"> <?php the_content('Read More...'); ?> </div>
</div>
<?php endwhile; ?>
<div id="morePrev">
<?php next_posts_link('Older Posts'); ?>
<?php previous_posts_link('More Recent Posts'); ?>
</div>
<?php else : ?>
<p>I'm not sure what you're looking for. </p>
<?php endif; ?>
</div> <!-- End Article -->
</div> <!-- End Blog -->
<?php wp_reset_query(); ?>
<?php get_footer(); ?>