mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🐛 Fix: link-to-edit URL splicing error (#139)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
{{- with $params.edit -}}
|
||||
{{- if .Enable -}}
|
||||
<span>
|
||||
{{- $options := dict "Class" "link-to-edit" "Destination" (path.Join .Url $.File.Path) "Title" (T "editThisPage") "Content" (T "editThisPage") "externalIcon" false -}}
|
||||
{{- $options := dict "Class" "link-to-edit" "Destination" (printf "%v/%v" (strings.TrimSuffix "/" .Url) $.File.Path) "Title" (T "editThisPage") "Content" (T "editThisPage") "externalIcon" false -}}
|
||||
{{- partial "plugin/link.html" $options -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user