mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Fix branch paths when OutputFormat.Path is configured (note)
Fixes #13829 Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
This commit is contained in:
@@ -145,6 +145,10 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
|
||||
pb.isUgly = true
|
||||
}
|
||||
|
||||
if d.Type.Path != "" {
|
||||
pb.Add(d.Type.Path)
|
||||
}
|
||||
|
||||
if d.Type == output.HTTPStatus404HTMLFormat || d.Type == output.SitemapFormat || d.Type == output.RobotsTxtFormat {
|
||||
pb.noSubResources = true
|
||||
} else if d.Kind != kinds.KindPage && d.URL == "" && d.Section.Base() != "/" {
|
||||
@@ -156,10 +160,6 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
|
||||
needsBase = false
|
||||
}
|
||||
|
||||
if d.Type.Path != "" {
|
||||
pb.Add(d.Type.Path)
|
||||
}
|
||||
|
||||
if d.Kind != kinds.KindHome && d.URL != "" {
|
||||
pb.Add(paths.FieldsSlash(d.URL)...)
|
||||
|
||||
|
Reference in New Issue
Block a user