mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 14:14:04 +00:00
feat: point Edit Page link directly to GitHub editor
Previously, it pointed to the file viewer. Close #1224
This commit is contained in:
1 parent
72a5e5b8c0
commit
29bd98eece
1 file changed
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user