{{ $menuPages := site.Menus.docs }} {{ $githubRepo := site.Params.githubrepo }} {{ $twitterHandle := site.Params.twitterhandle }} {{ $versions := site.Params.versions }} {{ $latest := site.Params.latest }} {{ $docs := where site.Pages "Section" "docs" }} {{ $isDocsPage := eq .Section "docs" }} {{ $preview := getenv "HUGO_PREVIEW" }} {{ $isPreview := eq $preview "true" }} {{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} {{ $currentVersion := index (split $path "/") 1 }}