<?php
/**
* The template for displaying Category pages.
*
* @package Noteskine
*/

get_header(); ?>

	<section id="primary" class="content-area">
		<div id="content" class="site-content" role="main">
			
		<?php if ( have_posts() ) : ?>
			
			<header class="archive-header">
				<h1 class="archive-title"><?php printf( '<i class="fa fa-folder"></i>&nbsp;' . __( 'Category: %s', 'noteskine' ), single_cat_title( '', false ) ); ?></h1>

				<?php if ( category_description() ) : // Show an optional category description ?>
					<div class="archive-meta"><?php echo category_description(); ?></div>
				<?php endif; ?>
			</header><!-- .archive-header -->
			
			<?php /* The loop. */ ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', get_post_format() ); ?>
			<?php endwhile; ?>
			
			<?php noteskine_pagination(); ?>

		<?php else : ?>
			<?php get_template_part( 'content', 'none' ); ?>
		<?php endif; ?>
	
		</div><!-- #content -->
	</section><!-- #primary -->
	
<?php get_footer(); ?>