{{ $isDoc := eq .Section "docs" }}
{{ $isHome       := .IsHome }}
{{ if $isHome }}
{{/*  The homepage layouts/index.html template defines its own <head> content.  */}}
{{ block "main" . }}
{{ end }}
{{ else }}
<!DOCTYPE html>
<html lang="{{ site.LanguageCode }}">
  <head>
    {{ partial "google-analytics.html" . }}
    {{ partial "meta.html" . }}

    <title>
      {{ block "title" . }}{{ site.Title }}{{ end }}
    </title>

    {{ partial "css.html" . }}
  </head>
  <body>
    {{ block "main" . }}
    {{ end }}

    {{ if $isDoc }}
    {{ partial "javascript.html" . }}
    {{ end }}
  </body>
</html>
{{ end }}