Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yihui/hugo-xmag.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/header.html1
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 }}