mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-10 21:18:38 -04:00
don't use path.Join, because it cleans the final path
This commit is contained in:
parent
f4389e48ce
commit
a4b9f1a92c
@ -15,7 +15,6 @@ package modules
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
@ -389,7 +388,7 @@ type Mount struct {
|
||||
|
||||
// Used as key to remove duplicates.
|
||||
func (m Mount) key() string {
|
||||
return path.Join(m.Lang, m.Source, m.Target)
|
||||
return strings.Join([]string{m.Lang, m.Source, m.Target}, "/")
|
||||
}
|
||||
|
||||
func (m Mount) Component() string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user