diff options
| author | Syphdias <syphdias+git@gmail.com> | 2021-03-23 10:28:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-23 14:58:26 +0530 |
| commit | abfdb54c92a26dcfaf876d2e06c1059ec9254694 (patch) | |
| tree | 82a3c9140c0a6fbf5b07e19df978321386d8838e /layouts/_default | |
| parent | f3cac6c09e02d9ac2836906368608a4955c1ef42 (diff) | |
Add option to show link in meta data for editing posts (#278)
Usage
- in site config =>
Params:
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
- in front-matter vars =>
---
editPost:
URL: "https://github.com/<path_to_repo>/content"
Text: "Suggest Changes" # edit text
appendFilePath: true # to append file path to Edit link
---
- Front-matter vars overrides global ones
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/single.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2868942..117ce7b 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,6 +16,7 @@ <div class="post-meta"> {{- partial "post_meta.html" . -}} {{- partial "translation_list.html" . -}} + {{- partial "edit_post.html" . -}} </div> {{- end}} </header> |
