{{ $siteDescription := .Site.Params.description }} {{ if (index .Site.Data .Site.Language.Lang).site }} {{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }} {{ if $siteConfig.description }} {{ $siteDescription = $siteConfig.description }} {{ end }} {{ end }} {{- partial "header.html" . -}} {{- partial "opengraph.html" . -}} {{ if site.GoogleAnalytics }} {{ if hasPrefix site.GoogleAnalytics "UA-"}} {{ template "_internal/google_analytics_async.html" . }} {{ else }} {{ template "_internal/google_analytics.html" . }} {{ end }} {{ end }} {{- partial "navigators/navbar.html" . -}} {{- partial "sections/home.html" . -}} {{ $sections:= site.Data.sections }} {{ if (index site.Data site.Language.Lang).sections }} {{ $sections = (index site.Data site.Language.Lang).sections }} {{ end }} {{ if $sections }} {{ $background:= "bg-white"}} {{ range sort $sections "section.weight" }} {{ if .section.enable }}
{{ if .section.template }} {{- partial .section.template . -}} {{ else }} {{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}} {{ end }}
{{ if eq $background "bg-white" }} {{ $background = "bg-dimmed" }} {{ else }} {{ $background = "bg-white" }} {{end}} {{ end }} {{ end }} {{ end }} {{ $footerTemplate:= site.Params.footer.template | default "footer.html" }} {{- partial $footerTemplate . -}} {{ partial "scripts.html" . }}