Skip to content

Commit 339b8ac

Browse files
🐛 fixed the page numbers being incorrect (#40)
1 parent f026b8e commit 339b8ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

themes/linear/entries.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
Witnessed by: #h(10pt) #ctx.witness
8787
],
8888
[
89-
#align(right, box(fill: surface-1, outset: 8pt, counter(page).display()))
89+
#align(right, box(fill: surface-1, outset: 8pt, context counter(page).display()))
9090
]
9191
)
9292
],

themes/radial/entries.typ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#let frontmatter-entry(ctx: (:), body) = {
1414
show: page.with(
1515
header: components.title(ctx.title),
16-
footer: align(right, counter(page).display("i")),
16+
footer: align(right, context counter(page).display("i")),
1717
)
1818
body
1919
}
@@ -33,7 +33,7 @@
3333
#align(left, [
3434
*Designed by:* #ctx.author #h(2pt) \
3535
*Witnessed by:* #ctx.witness
36-
#h(1fr) #counter(page).display()
36+
#h(1fr) #context counter(page).display()
3737
])
3838
])
3939
body
@@ -42,7 +42,7 @@
4242
#let appendix-entry(ctx: (:), body) = {
4343
show: page.with(
4444
header: components.title(ctx.title),
45-
footer: align(right, counter(page).display()),
45+
footer: align(right, context counter(page).display()),
4646
)
4747

4848
body

0 commit comments

Comments
 (0)