diff options
author | thingsym <thingsym@gmail.com> | 2021-10-18 12:45:28 +0300 |
---|---|---|
committer | thingsym <thingsym@gmail.com> | 2021-10-18 12:45:28 +0300 |
commit | 79ee7d5b2c4ade31ea2b9979fb90a0634c616859 (patch) | |
tree | d2630f16cba3101f05c853fc469f25e9d93f33af | |
parent | f39686f336db1266d2ca477a64b3c30fc169682f (diff) |
fix: add github_doc_repository_path
-rwxr-xr-x | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/edit-page.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f029af0..6d3e348 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,6 +22,7 @@ enableMissingTranslationPlaceholders = false # Documentation repository section # documentation repository (set edit link to documentation repository) github_doc_repository = "https://github.com/thingsym/hugo-theme-techdoc" + github_doc_repository_path = "" # Analytic section google_analytics_id = "" # Your Google Analytics tracking id diff --git a/layouts/partials/edit-page.html b/layouts/partials/edit-page.html index c6458c6..f29be88 100644 --- a/layouts/partials/edit-page.html +++ b/layouts/partials/edit-page.html @@ -1,3 +1,3 @@ {{- if and .Site.Params.github_doc_repository .File -}} -<a href="{{ .Site.Params.github_doc_repository }}/edit/master/content/{{ .File.Path }}" class="edit-page"><i class="fas fa-pen-square"></i> Edit on GitHub</a> +<a href="{{ .Site.Params.github_doc_repository }}/edit/master/{{ .Site.Params.github_doc_repository_path }}{{ .File.Path }}" class="edit-page"><i class="fas fa-pen-square"></i> Edit on GitHub</a> {{- end -}} |