Skip to content

Commit

Permalink
feat: make edit button configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Mar 1, 2020
1 parent 8cf72fb commit 6491b5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/edit-button.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<a class="button is-pulled-right" href="{{ .Site.Params.repo.URL }}/edit/{{ .Site.Params.repo.branch }}/{{ .Site.Params.repo.contentDir }}/{{ .Language }}/{{ .File.Path }}">Edit</a>
{{ with $.Site.Params.repo }}
<a class="button is-pulled-right" href="{{ .URL }}/edit/{{ .branch }}/{{ .contentDir }}/{{ .Language }}/{{ .File.Path }}">Edit</a>
{{ end }}

0 comments on commit 6491b5e

Please sign in to comment.