
<!-- DEFAULT BEGIN -->

<%- include('partials/top') %>
<% var titleLink = (site && site.base_uri) ? site.base_uri : '/'; -%>
<body>
  <a name="top" id="topAnchor" class="topAnchor"></a>
  <div class="page">
	  <header id="header" class="pageHeader pageSection">
		  <div class="pageHeader-titleBlock clearfix">
			  <h1 class="siteTitle"><a href="<%= titleLink %>" class="siteTitle-link"><%= site.title %></a></h1>
		  </div>

      <%- include('partials/navmain') %>

	  </header>

	  <main id="content" class="pageMain pageSection">
		  <div class="pageMain-inner">

        <%- include('partials/embed_switch') %>

        <% if (page.content_type) { -%>

          <%- (include('partials/content_types/' + page.content_type) || '').trim() %>

        <% } else { -%>

          <%- include('functions') -%>

          <% if (page.title && (page.render_opts || '').indexOf('no_title') == -1) { -%>

            <h2>
              <a
                class="titleLink"
                href="/<%= page.path %>"
                id="<%= snakeCase(page.title) %>"
                name="<%= snakeCase(page.title) %>"
              ><%= page.title %></a>
            </h2>
          <% } -%>

          <%- content %>

        <% } -%>

		  </div>
	  </main>

    <%- include('partials/menusub') %>

    <%/*
    	  if ("index" === top_dir) {
          loadPartial(top_dir, 'latest')
        }
    */%>

    <%- include('partials/bio') %>

    <%- include('partials/footer') %>

  </div>

<%- include('partials/bottom') %>

<!-- DEFAULT END -->
