mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
don't use path.Join, because it cleans the final path
This commit is contained in:
committed by
Bjørn Erik Pedersen
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 {
|
||||
|
Reference in New Issue
Block a user