<!doctype html>

{{ $lang := .Site.Language.Lang | default "en" }}
<html lang="{{ $lang }}">
    <head>{{- partial "head.html" . -}}</head>

    <body class="{{ if .IsHome }}home{{ else }}post{{ end }}-template">
        {{- partial "navigation.html" . -}}
        <section class="page-wrapper">
            {{- block "main" . -}}{{- end -}}
            {{- partial "search.html" . -}}
            {{- partial "footer.html" . -}}
        </section>

        {{ partial "scripts.html" . }}
    </body>
</html>