mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
edit: remove double slash on root page link #450
This commit is contained in:
parent
5f7df12b88
commit
fd1c03b82f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue