{{ define "main" }} {{ $disabledVersions := slice "v3.3" "v3.4" "v4.1" }} {{ $currentVersion := index (strings.FindRE `v[0-9]+\.[0-9]+` .RelPermalink) 0 }} {{ if in $disabledVersions $currentVersion }} {{ return }} {{ end }} {{ with .Params.section1 }} {{ .title }} {{ .content }} {{ partial "searchInput" . }} {{ end }} {{ $Site := .Site }} {{ with .Params.sectionLink }} {{ with .docs}} {{ .title }} {{ .description }} {{ range .list }} {{ with $Site.GetPage . }} {{ .LinkTitle }} {{ end }} {{ end }} {{ end }} {{ with .videos}} {{ .title }} {{ .description }} {{ range .list }} {{ .text }} {{ end }} {{ end }} {{ end }} {{ partial "section" (dict "context" .) }} {{ with .Params.section3 }} {{ .title }} {{ .description }} {{ range .list }} {{ .content }} {{ end }} {{ .titleRight }} {{ .btnContent }} {{ end }} {{ end }}
{{ .content }}
{{ .description }}