Invert the order of titles
This commit is contained in:
parent
8a087dea4a
commit
1cd87209be
9
main.go
9
main.go
|
@ -67,14 +67,13 @@ func getMeta(name string) (*meta, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
titles := v.Data[0].Titles
|
titles := v.Data[0].Titles
|
||||||
parts := []string{}
|
parts := []string{titles.Primary}
|
||||||
if titles.Tertiary != nil {
|
|
||||||
parts = append(parts, *titles.Tertiary)
|
|
||||||
}
|
|
||||||
if titles.Secondary != nil {
|
if titles.Secondary != nil {
|
||||||
parts = append(parts, *titles.Secondary)
|
parts = append(parts, *titles.Secondary)
|
||||||
}
|
}
|
||||||
parts = append(parts, titles.Primary)
|
if titles.Tertiary != nil {
|
||||||
|
parts = append(parts, *titles.Tertiary)
|
||||||
|
}
|
||||||
return &meta{timeout: 5000, title: strings.Join(parts, " - ")}, nil
|
return &meta{timeout: 5000, title: strings.Join(parts, " - ")}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue