<?php /*template name: nosidebar*/ get_header(); ?>
<?php if ( has_post_thumbnail() ) : ?> 
<div class="uk-cover-container uk-text-center banner uk-margin-large-bottom">
    <canvas class="uk-visible@m" width="" height="400"></canvas>
    <canvas class="uk-hidden@m" width="" height="300"></canvas>

	<img uk-img data-src="<?php the_post_thumbnail_url('full'); ?>" data-width data-height uk-cover>

	<div class="uk-overlay-primary uk-position-cover"></div>
	<div class="uk-position-cover uk-text-center uk-container uk-flex uk-flex-center uk-flex-middle">
        <div>
           <h1 class="white"><?php the_title(); ?></h1>
        </div>
    </div>
</div>
<?php endif; ?>

					
<div class="uk-container">
	<main role="main">
		<section>
			<?php if ( has_post_thumbnail() ) { ?> 
			<?php } else { ?>
				<h1 class="uk-text-center"><?php the_title(); ?></h1>
			<?php }?>
			
			<?php if (have_posts()): while (have_posts()) : the_post(); ?>

				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

					<?php the_content(); ?>

					<br class="clear">

					<p class="uk-text-right"><?php edit_post_link( __('Edit this page'), '', '', 0, 'post-edit-link uk-text-large uk-padding-small uk-button-large uk-button uk-button-primary' ); ?></p>

				</article>

			<?php endwhile; ?><?php endif; ?>

		</section>
	</main>
</div>
<?php get_footer(); ?>
