diff options
author | Thomas M Porter II <thomasmporterii@gmail.com> | 2019-12-17 15:24:15 -0700 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-12-17 23:24:15 +0100 |
commit | f5a52e6ed124526ebd070480068e6e145af11d9a (patch) | |
tree | d27b8c53125a05fea4b6bdfbc6d07d9f169f245b /layouts/partials/docs | |
parent | e30504802eff2a2f7cce86a40aa9f309d8ec5ca6 (diff) |
replacing any backslashes with forward slashes for edit file url(#116)
Seems to be a Windows related thing. `.File.Path` returns a path with backslashes this adds a replace to make those forward slashes. This appears to fix #115
Diffstat (limited to 'layouts/partials/docs')
-rw-r--r-- | layouts/partials/docs/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index df7ed52..99d4926 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -17,7 +17,7 @@ {{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }} <div> - <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ .File.Path }}" target="_blank"> + <a class="flex align-center" href="{{ .Site.Params.BookRepo }}/{{ .Site.Params.BookEditPath }}/{{ replace .File.Path "\\" "/" }}" target="_blank"> <img src="{{ "svg/edit.svg" | relURL }}" class="book-icon" alt="Edit" /> <span>{{ i18n "Edit this page" }}</span> </a> |