diff --git a/layouts/partials/main/edit-page.html b/layouts/partials/main/edit-page.html index 77189ee..d685b2d 100644 --- a/layouts/partials/main/edit-page.html +++ b/layouts/partials/main/edit-page.html @@ -1 +1,16 @@ -

Edit this page on GitHub

+{{ $filePath := replace .File.Path "\\" "/" }} +{{ $contentPath := print .Site.Params.docsRepo "/blob/" .Site.Params.docsRepoBranch "/content/" }} +{{ $url := print $contentPath $filePath }} + +{{ if .Site.Params.options.multilingualMode }} + {{ $url = print $contentPath .Lang "/" $filePath }} +{{ end }} + +

+ + + + + Edit this page on GitHub + +