Skip to content

Commit 16abce2

Browse files
Only show references if at least 1 item is citated
1 parent 49c8593 commit 16abce2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

posts/_utils/lib.typ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@
100100
#metadata(keywords) <KEYWORDS>
101101
#doc
102102

103-
// Do not emit the title if there are no citations.
103+
// HACK: This kind of works its not great though
104104
#context {
105105
if query(cite).len() > 0 {
106-
bibliography("/posts/Zotero.bib", style: "apa", title: "References")
106+
[= References]
107107
}
108108
}
109-
109+
#bibliography("/posts/Zotero.bib", style: "apa", title: none)
110110
]

0 commit comments

Comments
 (0)