Edit button on translated pages working as well now (#12230)

pull/12236/head
Roy Lenferink 2019-01-15 21:48:55 +01:00 committed by Kubernetes Prow Robot
parent aac7862a06
commit 0ca5d446d9
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{{- $filepath := .page.File.Path }}
{{- $editLink := printf "https://github.com/kubernetes/website/edit/master/content/en/%s" $filepath }}
{{- $editLink := printf "https://github.com/kubernetes/website/edit/master/content/%s/%s" .page.Language.Lang $filepath }}
<p>
<a href="{{ $editLink }}" id="editPageButton" target="_blank">
Edit This Page