edit-this-page.html 423 B

12345678910
  1. {{ if $.Param "enableEditBtn" }}
  2. {{ $root := .}}
  3. {{ with .FirstSection }}
  4. <a href="{{ .Params.editBaseURL | default ($.Param "editBaseURL") }}{{ strings.TrimSuffix "/" ($root.Permalink | relLangURL) }}.md" target="_blank" rel="noreferrer">
  5. <button class="editBtn" aria-label="Edit This Page Button">
  6. {{ i18n "edit-this-page" | default "EDIT THIS PAGE" }}
  7. </button>
  8. </a>
  9. {{ end }}
  10. {{ end }}