mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
b959ecbc81
commit
64e1613fb3
3 changed files with 10 additions and 4 deletions
|
@ -15,6 +15,7 @@ package modules
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
|
@ -386,6 +387,11 @@ type Mount struct {
|
|||
ExcludeFiles interface{}
|
||||
}
|
||||
|
||||
// Used as key to remove duplicates.
|
||||
func (m Mount) key() string {
|
||||
return path.Join(m.Lang, m.Source, m.Target)
|
||||
}
|
||||
|
||||
func (m Mount) Component() string {
|
||||
return strings.Split(m.Target, fileSeparator)[0]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue