diff options
Diffstat (limited to 'layouts/partials/body-article-sidepage.html')
-rw-r--r-- | layouts/partials/body-article-sidepage.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html index 4f172d2..219760c 100644 --- a/layouts/partials/body-article-sidepage.html +++ b/layouts/partials/body-article-sidepage.html @@ -25,7 +25,7 @@ {{ if .Site.Params.editWithNetlifyCMSURL }} <li> - {{$dir := replace .Dir "\\" "/" }}{{if eq $dir "/" }}{{$dir=""}}{{end}} + {{$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> |