feat: point Edit Page link directly to GitHub editor

Previously, it pointed to the file viewer.

Close #1224
This commit is contained in:
George Cushen committed 2019-07-23 21:00:35 +01:00
1 parent 72a5e5b8c0
commit 29bd98eece
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,6 @@
{{ if site.Params.edit_page.repo_url | and (index site.Params.edit_page.editable .Type) | and (ne .Params.editable false) | or .Params.editable }}
<p class="edit-page">
<a href="{{site.Params.edit_page.repo_url}}/blob/{{site.Params.edit_page.repo_branch | default "master"}}/content/{{.File.Path}}">
<a href="{{site.Params.edit_page.repo_url}}/edit/{{site.Params.edit_page.repo_branch | default "master"}}/content/{{.File.Path}}">
<i class="fas fa-pen pr-2"></i>{{ i18n "edit_page" | default "Edit this page" }}
</a>
</p>