diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-11 14:12:01 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-11 14:12:01 +0300 |
commit | a035927d9db7431d8611baa84c18f0e2c6c95800 (patch) | |
tree | 36e947a6509bb2260279abe0ab528ee18a7eead4 | |
parent | 68eb9a70bb0ba1bd83bcc4ac69b35e290103a863 (diff) |
fix netlifyCMS "Improve this page"
-rw-r--r-- | layouts/partials/body-article-sidepage.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html index 6f2e0f2..4f172d2 100644 --- a/layouts/partials/body-article-sidepage.html +++ b/layouts/partials/body-article-sidepage.html @@ -25,6 +25,7 @@ {{ if .Site.Params.editWithNetlifyCMSURL }} <li> + {{$dir := replace .Dir "\\" "/" }}{{if eq $dir "/" }}{{$dir=""}}{{end}} <a href="{{ .Site.BaseURL }}{{ .Site.Params.editWithNetlifyCMSURL }}{{with .File}}{{ replace .Dir "\\" "/" | safeURL }}{{ .BaseFileName }}{{end}}" target="blank"> <i class="fab fa-github"></i> {{T "Edit-this-page"}}</a> |