mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 00:32:03 +00:00
parent
94ea12ebcf
commit
80e453f114
|
@ -1202,7 +1202,7 @@ func (p *Page) TargetPath() (outfile string) {
|
||||||
// TODO(bep) np
|
// TODO(bep) np
|
||||||
switch p.NodeType {
|
switch p.NodeType {
|
||||||
case NodeHome:
|
case NodeHome:
|
||||||
return p.addLangFilepathPrefix("/")
|
return p.addLangFilepathPrefix(helpers.FilePathSeparator)
|
||||||
case NodeSection:
|
case NodeSection:
|
||||||
return p.addLangFilepathPrefix(p.sections[0])
|
return p.addLangFilepathPrefix(p.sections[0])
|
||||||
case NodeTaxonomy:
|
case NodeTaxonomy:
|
||||||
|
|
Loading…
Reference in a new issue