media, output: Fix spelling
This commit is contained in:
parent
e6e1aca3f4
commit
e77bb13c20
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ func (t Types) GetBySuffix(suffix string) (tp Type, found bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeTypes takes a list of media type configurations and merges those,
|
// DecodeTypes takes a list of media type configurations and merges those,
|
||||||
// in ther order given, with the Hugo defaults as the last resort.
|
// in the order given, with the Hugo defaults as the last resort.
|
||||||
func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
|
func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
|
||||||
m := make(Types, len(DefaultTypes))
|
m := make(Types, len(DefaultTypes))
|
||||||
copy(m, DefaultTypes)
|
copy(m, DefaultTypes)
|
||||||
|
|
|
@ -217,7 +217,7 @@ func (formats Formats) FromFilename(filename string) (f Format, found bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DecodeFormats takes a list of output format configurations and merges those,
|
// DecodeFormats takes a list of output format configurations and merges those,
|
||||||
// in ther order given, with the Hugo defaults as the last resort.
|
// in the order given, with the Hugo defaults as the last resort.
|
||||||
func DecodeFormats(mediaTypes media.Types, maps ...map[string]interface{}) (Formats, error) {
|
func DecodeFormats(mediaTypes media.Types, maps ...map[string]interface{}) (Formats, error) {
|
||||||
f := make(Formats, len(DefaultFormats))
|
f := make(Formats, len(DefaultFormats))
|
||||||
copy(f, DefaultFormats)
|
copy(f, DefaultFormats)
|
||||||
|
|
Loading…
Add table
Reference in a new issue