Skip to content

Commit

Permalink
fix: resolve the editURL problem on Windows (#308)
Browse files Browse the repository at this point in the history
updates #279
  • Loading branch information
ichenh authored May 23, 2021
1 parent 2dc1f8b commit 25be50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/components/post-gitinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{{ with .Site.Params.repoEditURL }}
{{ $contentDir := (cond $.Site.IsMultiLingual (printf `/%s/` $.Site.Params.contentDir) "/content/") }}
<div class="gitinfo-item edit">
<a href="{{ . }}{{ $contentDir }}{{ $.Path }}" target="_blank" rel="noopener">
<a href="{{ . }}{{ $contentDir }}{{ replace $.Path "\\" "/" }}" target="_blank" rel="noopener">
{{- partial "utils/icon.html" (dict "$" $ "name" $.Site.Params.editIcon "class" "edit-icon") -}}
{{- $.Site.Params.editText -}}
</a>
Expand Down

0 comments on commit 25be50d

Please sign in to comment.