{{ $currentVersion := index .Site.Params.versions 0}}

<a
  class="edit-btn"
  target="_blank"
  href="https://github.com/dgraph-io/dgraph/tree/{{ $currentVersion }}/wiki/content/{{ replace .File.Path '\\' '/' }}">
    <i class="fa fa-github-alt"></i> Suggest Edit
</a>

{{ $currentVersion := index .Site.Params.versions 0}}

<a
  class="edit-btn"
  target="_blank"
  href="https://github.com/dgraph-io/dgraph/tree/release/{{ $currentVersion }}/wiki/content/{{ replace .File.Path '\\' '/' }}">
    <i class="fa fa-github-alt"></i> Suggest Edit
</a>

Fix file path for edit
Fix file path for edit
