<?php get_header(); ?>
<div id="content">
<div id="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="theblogpost<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
<div class="postdets">
<a href="<?php the_permalink() ?>#comments">
<div class="postcomments">
<?php comments_number('0', '1', '%'); ?>
</div>
</a>
<h2><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></div>
</div>
<div class="entry">
<?php the_content('Continue Reading'); ?>
</div>
</div> <!-- end theblogpost -->
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
<div class="pagenavi">
<div class="alignleft"><?php next_posts_link('Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
</div>
</div> <!-- end main -->
<?php include (TEMPLATEPATH . '/sidebar-blog.php'); ?>
</div> <!-- end content -->
<?php get_footer(); ?>