github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/docs/layouts/partials/version-switcher.html (about) 1 {{ $VersionString := getenv "VERSIONS" }} 2 {{ $Versions := split $VersionString "," }} 3 {{ $currentVersion := getenv "CURRENT_VERSION" }} 4 5 <div class="version-switcher"> 6 <span>{{ $currentVersion }}</span> 7 <div class="version-switcher-options"> 8 <a class="version-switcher-option">{{$currentVersion}}</a> 9 {{ range $i, $version := $Versions }} 10 {{ if not (eq $currentVersion $version) }} 11 <a href="https://gqlgen.com/{{$version}}/" class="version-switcher-option">{{$version}}</a> 12 {{ end }} 13 {{ end }} 14 </div> 15 </div>