mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
1 parent
260b55ea56
commit
af99a59021
1 file changed
+8
@@ -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