{extends $layout} {block content}
{if $posts}

{if $archive->isDay} {__ 'Daily Archives:'} {$posts[0]->date|date:$site->dateFormat} {elseif $archive->isMonth} {__ 'Monthly Archives:'} {$posts[0]->date|date:'F Y'} {elseif $archive->isYear} {__ 'Yearly Archives:'} {$posts[0]->date|date:'Y'} {else} {__ 'Blog Archives'} {/if}

{include parts/posts-loop.php, posts => $posts}
{isActiveSidebar blog-sidebar}
{if isset($post)} {if isset($post->options('contact-area')->overrideGlobal)} {if $post->options('contact-area')->contactAreaPosition == 'sidebar'} {include parts/contact-area.php, options => $post->options('contact-area')} {/if} {else} {if $themeOptions->sections->contactAreaPosition == 'sidebar'} {include parts/contact-area.php, options => $themeOptions->sections} {/if} {/if} {/if} {dynamicSidebar blog-sidebar}
{/isActiveSidebar} {include parts/content-nav.php, location => 'nav-below'} {else}
{include parts/nothing-found.php}
{/if}
{/block}