<?php get_header(); ?>
		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

		<?php if (is_category()) { ?>
			<h1><?php single_cat_title(); ?></h1>

		<?php } elseif( is_tag() ) { ?>
			<h1>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h1>

		<?php } elseif (is_day()) { ?>
			<h1><?php the_time('F jS, Y'); ?></h1>

		<?php } elseif (is_month()) { ?>
			<h1><?php the_time('F, Y'); ?></h1>

		<?php } elseif (is_year()) { ?>
			<h1> <?php the_time('Y'); ?></h1>

		<?php } elseif (is_author()) { ?>
			<h1>Author Archive</h1>

		<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<h1>Blog Archives</h1>
		
		<?php } ?>
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<?php include(TEMPLATEPATH . '/inc/article.php'); ?>
		<?php endwhile; ?>
	<?php else : ?>
		<h2>Not Found</h2>
	<?php endif; ?>
	<?php get_sidebar(); ?>
	<?php include(TEMPLATEPATH . '/inc/page-navigation.php'); ?>
<?php get_footer(); ?>
