<?php
get_header();
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?>.</a></h2>
<div class="commentlink"> <?php comments_popup_link(__('Comment'), __('one comment'), __('% comments')); ?></div>
</div>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<?php wp_link_pages(); ?>
<div class="meta"><?php the_category(',') ?> @ <?php the_time('g:i a') ?>, <?php the_time('F j, Y') ?> <?php edit_post_link(__('edit')); ?>
<?php if ( function_exists('the_tags')) the_tags('<br/>', ', ', '');?>
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
<?php get_footer(); ?>