Fix edit page button at bottom of pages. (#10517)

pull/10504/merge
Andrew Chen 2018-10-05 15:13:03 -07:00 committed by k8s-ci-robot
parent 5f34b71022
commit 58aa2d5c30
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
{{ end }}
{{ end }}
{{ if not .Params.noedit }}
<a href="{{ printf "%s#%s" ("docs/editdocs" | relURL) .Path | safeURL }}" class="button issue">{{ T "main_edit_this_page" }}</a>
<a href="https://github.com/kubernetes/website/edit/master/content/{{ .Site.Language.Lang }}/{{ .File.Path }}" class="button issue">{{ T "main_edit_this_page" }}</a>
{{ end }}
</div>
{{ if not .Params.showcommit }}

View File

@ -1,4 +1,4 @@
<p><a href="https://github.com/kubernetes/website/edit/master/content/en/{{ .page.File.Path }}" id="editPageButton" target="_blank">Edit This Page</a></p>
<p><a href="https://github.com/kubernetes/website/edit/master/content/{{ .page.Lang }}/{{ .page.File.Path }}" id="editPageButton" target="_blank">Edit This Page</a></p>
{{ if not .page.Params.notitle }}
<h1>{{ .page.Title }}</h1>
{{ end }}