Simplified menu.

This commit is contained in:
mtail 2019-06-19 05:00:25 -07:00
parent 27dd77f4c9
commit 099a91ebdd
3 changed files with 6 additions and 6 deletions

View File

@ -44,10 +44,10 @@ other = "Dark Theme"
other = "Other versions of this site"
[current_release]
other = "Current Release (%s)"
other = "Current Release"
[next_release]
other = "Next Release (Preliminary %s)"
other = "Next Release"
[archived_releases]
other = "Older Releases"

View File

@ -44,10 +44,10 @@ other = "暗主题"
other = "本站的其它版本"
[current_release]
other = "当前版本%s"
other = "当前版本"
[next_release]
other = "下个版本(预发布 %s"
other = "下个版本"
[archived_releases]
other = "旧版本"

View File

@ -104,8 +104,8 @@
{{ end }}
{{ if or .Site.Data.args.archive .Site.Data.args.archive_landing }}
<a tabindex="-1" role="menuitem" onclick="navigateToUrlOrRoot('https://istio.io/{{ $fileDir }}');return false;">{{ printf (i18n "current_release") $current }}</a>
<a tabindex="-1" role="menuitem" onclick="navigateToUrlOrRoot('https://preliminary.istio.io/{{ $fileDir }}');return false;">{{ printf (i18n "next_release") $next }}</a>
<a tabindex="-1" role="menuitem" onclick="navigateToUrlOrRoot('https://istio.io/{{ $fileDir }}');return false;">{{ i18n "current_release" }}</a>
<a tabindex="-1" role="menuitem" onclick="navigateToUrlOrRoot('https://preliminary.istio.io/{{ $fileDir }}');return false;">{{ i18n "next_release" }}</a>
<a tabindex="-1" role="menuitem" href="https://archive.istio.io">{{ i18n "archived_releases" }}</a>
{{ else if .Site.Data.args.preliminary }}
<a tabindex="-1" role="menuitem" onclick="navigateToUrlOrRoot('https://istio.io/{{ $fileDir }}');return false;">{{ printf (i18n "current_release") $current }}</a>