{{ $path := "" }} {{ with .File }} {{ $path = .Path }} {{ else }} {{ $path = .Path }} {{ end }} {{ $version := index (split $path "/") 1 }} {{ $isDoc := eq .Section "docs" }}