summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml4
-rw-r--r--exampleSite/config.yaml4
-rw-r--r--layouts/partials/docs/footer.html2
3 files changed, 5 insertions, 5 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index a44dc39..93325cf 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -73,8 +73,8 @@ enableGitInfo = true
# Enable "Edit this page" links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
- # Path must point to 'content' directory of repo.
- BookEditPath = 'edit/master/exampleSite/content'
+ # Edit path must point to root directory of repo.
+ BookEditPath = 'edit/master/exampleSite'
# Configure the date format used on the pages
# - In git information
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index d7038ba..bf05b2a 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -69,8 +69,8 @@ params:
# Enable "Edit this page" links for 'doc' page type.
# Disabled by default. Uncomment to enable. Requires 'BookRepo' param.
- # Path must point to 'content' directory of repo.
- BookEditPath: edit/master/exampleSite/content
+ # Edit path must point to root directory of repo.
+ BookEditPath: edit/master/exampleSite
# Configure the date format used on the pages
# - In git information
diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html
index 303d2bf..abb1978 100644
--- a/layouts/partials/docs/footer.html
+++ b/layouts/partials/docs/footer.html
@@ -15,7 +15,7 @@
{{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
<div>
- <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener">
+ <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .Site.Params.contentDir }}/{{ replace .File.Path "\\" "/" }}" target="_blank" rel="noopener">
<img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="Edit" />
<span>{{ i18n "Edit this page" }}</span>
</a>