git.sr.ht/~sircmpwn/gqlgen@v0.0.0-20200522192042-c84d29a1c940/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>