mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
don't use path.Join, because it cleans the final path
This commit is contained in:
parent
f4389e48ce
commit
a4b9f1a92c
1 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ package modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"path"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -389,7 +388,7 @@ type Mount struct {
|
||||||
|
|
||||||
// Used as key to remove duplicates.
|
// Used as key to remove duplicates.
|
||||||
func (m Mount) key() string {
|
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 {
|
func (m Mount) Component() string {
|
||||||
|
|
Loading…
Reference in a new issue