mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
@@ -241,6 +241,14 @@ func DecodeFormats(mediaTypes media.Types, maps ...map[string]interface{}) (Form
|
|||||||
return f, err
|
return f, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We need values for these
|
||||||
|
if newOutFormat.BaseName == "" {
|
||||||
|
newOutFormat.BaseName = "index"
|
||||||
|
}
|
||||||
|
if newOutFormat.Rel == "" {
|
||||||
|
newOutFormat.Rel = "alternate"
|
||||||
|
}
|
||||||
|
|
||||||
f = append(f, newOutFormat)
|
f = append(f, newOutFormat)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user