{{ $isDoc := eq .Section "docs" }} {{ $isHome := .IsHome }} {{ if $isHome }} {{/* The homepage layouts/index.html template defines its own content. */}} {{ block "main" . }} {{ end }} {{ else }} {{ partial "google-analytics.html" . }} {{ partial "meta.html" . }} {{ block "title" . }}{{ site.Title }}{{ end }} {{ partial "css.html" . }} {{ block "main" . }} {{ end }} {{ if $isDoc }} {{ partial "javascript.html" . }} {{ end }} {{ end }}