File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4040 < meta property ="og:image " content ="https://raw.githubusercontent.com/istio/istio.io/master/static/img/istio-social.png ">
4141 < meta property ="og:image:alt " content ="The Istio sailboat logo ">
4242 < meta property ="og:image:width " content ="4096 ">
43- < meta property ="og:image:height " content ="2048 ">
43+ < meta property ="og:image:height " content ="2048 ">
4444 {{ end }}
4545 < meta property ="og:site_name " content ="Istio ">
4646
161161 {{ if and (eq .Section "docs") .Site.Data.args.archive}}
162162 < div class ="archive-warning-banner " role ="alert ">
163163 {{ (printf (i18n "archive_banner_text") .Site.Data.args.version) | safeHTML }}
164- < a href ="/latest{{ .RelPermalink | safeURL }} "> {{ i18n "archive_banner_link" }}</ a >
164+ {{ $rel := .RelPermalink }}
165+ {{ $path := replaceRE `^/v[0-9]+\.[0-9]+/` "" $rel }}
166+ {{ $latestURL := printf "https://istio.io/latest/%s" $path }}
167+ < a href ="{{ $latestURL | safeURL }} "> {{ i18n "archive_banner_link" }}</ a >
165168 </ div >
166169 {{ end }}
167170
You can’t perform that action at this time.
0 commit comments