mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-07 07:33:35 +08:00
edit: remove double slash on root page link #450
This commit is contained in:
parent
5f7df12b88
commit
fd1c03b82f
@ -100,7 +100,7 @@
|
|||||||
{{- if and (eq $outputFormat "html") .Site.Params.editURL $File }}
|
{{- if and (eq $outputFormat "html") .Site.Params.editURL $File }}
|
||||||
{{- with $File.Path }}
|
{{- with $File.Path }}
|
||||||
<div id="top-github-link">
|
<div id="top-github-link">
|
||||||
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+w)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="_blank">
|
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+w)' href="{{ $Site.Params.editURL }}{{ strings.TrimLeft "/" (replace $File.Dir "\\" "/") }}{{ $File.LogicalName }}" target="_blank">
|
||||||
<i class="fas fa-pen fa-fw"></i>
|
<i class="fas fa-pen fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user