feat: Post edit Easily browse and edit blog source code online

This commit is contained in:
weilining committed 2021-01-11 03:33:52 +08:00
1 parent a1f86a1573
commit 9cac14411d
5 files changed
+25

No files matched your search

+7
View File
@@ -195,6 +195,13 @@ reward:
# link: # link:
# text: alipay # text: alipay
# Post edit
# Easily browse and edit blog source code online.
post_edit:
enable: false
url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source
#url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ # Link for fork & edit
# Related Articles # Related Articles
related_post: related_post:
enable: true enable: true
+3
View File
@@ -48,3 +48,6 @@ header#page-header(class=isHomeClass style=bg_img)
else else
#page-site-info #page-site-info
h1#site-title=site_title h1#site-title=site_title
if theme.post_edit.enable
a.post-edit-link(href=post_edit(page.source) title="编辑")
i.fa.fa-pen-nib
+3
View File
@@ -1,5 +1,8 @@
#post-info #post-info
h1.post-title= page.title || _p('no_title') h1.post-title= page.title || _p('no_title')
if theme.post_edit.enable
a.post-edit-link(href=post_edit(page.source) title="编辑")
i.fa.fa-pen-nib
#post-meta #post-meta
.meta-firstline .meta-firstline
Loaded 3 of 5 files, more files were not shown because too many files have changed in this diff. Show more