mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 05:30:54 +03:00
parent
5adb81ce39
commit
0e305d6958
3 changed files with 8 additions and 12 deletions
|
@ -402,11 +402,8 @@ func (m Mount) Component() string {
|
|||
}
|
||||
|
||||
func (m Mount) ComponentAndName() (string, string) {
|
||||
k := strings.Index(m.Target, fileSeparator)
|
||||
if k == -1 {
|
||||
return m.Target, ""
|
||||
}
|
||||
return m.Target[:k], m.Target[k+1:]
|
||||
c, n, _ := strings.Cut(m.Target, fileSeparator)
|
||||
return c, n
|
||||
}
|
||||
|
||||
func getStaticDirs(cfg config.Provider) []string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue