Fix URL for 'Edit this page' on Windows

This commit is contained in:
Giulio Vian 2017-01-05 22:59:15 +01:00
parent 7603122da8
commit b8ce3f3c45

View file

@ -34,7 +34,7 @@
{{ $Site := .Site }}
{{with $File.Path }}
<div id="top-github-link">
<a class="github-link" href="{{ $Site.Params.editURL }}{{ $File.Dir }}{{ $File.LogicalName }}" target="blank">
<a class="github-link" href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
<i class="fa fa-code-fork"></i>
Edit this page
</a>