sjwiesman commented on pull request #16670:
URL: https://github.com/apache/flink/pull/16670#issuecomment-892935664
@hapihu I'd like to ask for one more change to this PR. Can you please add a
new shortcode (under `layouts/shortcodes`) called `downloads.html` that
automatically picks the right param based on the language of the page. It
should look something like this:
```html
{{ if eq "/zh" .Site.LanguagePrefix }}
{{ .Site.Params.ZhDownloadPage }}
{{ else }}
{{ .Site.Params.DownloadPage }}
{{ end }}
```
In the docs, links will look like:
```md
[downloads]({{< downloads >}})
```
This way the English and Chinese docs will always point to the correct page,
and we don't need to worry about using different links when translating.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]