{%- raw %}
{{ $CurrentPageURL := .CurrentPageURL }}
{{ $CurrentPageURLRelative := .CurrentPageURLRelative }}
<div class="submenu-container">
    <ul class="submenu">
    {{- $prevVersion := "" }}
    {{- range (slice .VersionItems 1) }}
            <li class="submenu-item">
                <a data-proofer-ignore class="submenu-item-link" href="/docs/{{ .VersionURL }}{{ $CurrentPageURLRelative }}">
                    {{- if eq .Version "latest" }}
                    <span class="submenu-item-channel">lates