{{ define "main" }}
	<div id="page-wrapper">

		<!-- Header -->
			<div id="header-wrapper">
				<div id="header">
					{{ partial "logo.html" . }}
					{{ partial "nav.html" . }}
					{{ partial "banner.html" . }}
					{{ partial "intro.html" . }}
				</div>
			</div>

		<!-- Main -->
			<div id="main-wrapper">
				<div class="container">
					{{ $portfolioItems := where .Site.RegularPages "Type" .Site.Params.Portfolio.foldername }}
					{{ if $portfolioItems }}
					<div class="row">
						<div class="12u">
							{{ partial "portfolio.html" (dict "context" . "portfolioItems" $portfolioItems) }}
						</div>
					</div>
					{{ end }}
					{{ $blogPaginator := .Paginate (where .Site.RegularPages "Type" .Site.Params.Blog.foldername) 2 }}
					{{ if $blogPaginator.TotalNumberOfElements }}
					<div class="row">
						<div class="12u">
							{{ partial "blog.html" (dict "title" .Site.Params.Blog.title "paginator" $blogPaginator) }}
						</div>
					</div>
					<footer>
						<ul class="actions" style="text-align: center">
							<li><a href="{{ .Site.Params.Blog.foldername }}" class="button big">{{ .Site.Params.Blog.viewalltext }}</a></li>
						</ul>
					</footer>
					{{ end }}
				</div>
			</div>

			{{ partial "footer/index.html" . }}

	</div>

	{{ partial "scripts/index.html" . }}
	{{ if .Site.Params.Settings.disqus }}
	<script id="dsq-count-scr" src="//{{ .Site.Params.Settings.disqus }}.disqus.com/count.js" async></script>
	{{ end }}

{{ end }}
