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 40
40
< meta property ="og:image " content ="https://raw.githubusercontent.com/istio/istio.io/master/static/img/istio-social.png ">
41
41
< meta property ="og:image:alt " content ="The Istio sailboat logo ">
42
42
< meta property ="og:image:width " content ="4096 ">
43
- < meta property ="og:image:height " content ="2048 ">
43
+ < meta property ="og:image:height " content ="2048 ">
44
44
{{ end }}
45
45
< meta property ="og:site_name " content ="Istio ">
46
46
161
161
{{ if and (eq .Section "docs") .Site.Data.args.archive}}
162
162
< div class ="archive-warning-banner " role ="alert ">
163
163
{{ (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 >
165
168
</ div >
166
169
{{ end }}
167
170
You can’t perform that action at this time.
0 commit comments