Fix Wiki Deploy Post Titles
This commit is contained in:
@@ -833,7 +833,11 @@ func (ctx *wikiContext) renderReferenceList(values []any) string {
|
||||
|
||||
func (ctx *wikiContext) resolveRowName(category string, row map[string]any) string {
|
||||
spec := specForDataset(category)
|
||||
for _, field := range spec.NameFields {
|
||||
nameFields := spec.NameFields
|
||||
if category == "classes" {
|
||||
nameFields = []string{"Name", "Plural", "Lower", "CLASS", "Label", "Short"}
|
||||
}
|
||||
for _, field := range nameFields {
|
||||
if value, ok := lookupField(row, field); ok {
|
||||
if text := ctx.resolveTextValue(value, nil); text != "" {
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user