diff options
-rw-r--r-- | layouts/partials/header.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 0a79efc..7abbbf9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -24,6 +24,7 @@ {{ else }} {{ $.Scratch.Set "FilePath" .File.Path }} {{ end }} + {{ $.Scratch.Set "FilePath" (replace ($.Scratch.Get "FilePath") "\\" "/") }} {{ with .Site.Params.github_edit}} <span><a href="{{ . }}{{ $.Scratch.Get "FilePath" }}">{{ (default "Edit this page" $.Site.Params.text.edit) | safeHTML }}</a></span> {{ end }} |