Skip to content

Commit

Permalink
Fix default to short
Browse files Browse the repository at this point in the history
  • Loading branch information
quachpas committed Oct 25, 2024
1 parent c70cf5a commit 5892af3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions themes/default.typ
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@
link-text += [#ent-long]
}
article = ent-artlong
} else if has-long {
link-text += [#ent-long#suffix]
article = ent-artlong
} else {
} else if has-short {
// Default to short
link-text = [#ent-short#suffix]
article = ent-artshort
} else {
link-text += [#ent-long#suffix]
article = ent-artlong
}

// Return
Expand Down Expand Up @@ -315,11 +315,11 @@
} else {
[#longplural]
}
} else if has-long {
[#longplural]
} else {
} else if has-short {
// Default to short
[#shortplural]
} else {
[#longplural]
}

return __link_and_label(entry.key, link-text)
Expand Down

0 comments on commit 5892af3

Please sign in to comment.