Skip to content

Commit

Permalink
🐛 fixed the page numbers being incorrect (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
BattleCh1cken authored May 5, 2024
1 parent f026b8e commit 339b8ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion themes/linear/entries.typ
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
Witnessed by: #h(10pt) #ctx.witness
],
[
#align(right, box(fill: surface-1, outset: 8pt, counter(page).display()))
#align(right, box(fill: surface-1, outset: 8pt, context counter(page).display()))
]
)
],
Expand Down
6 changes: 3 additions & 3 deletions themes/radial/entries.typ
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#let frontmatter-entry(ctx: (:), body) = {
show: page.with(
header: components.title(ctx.title),
footer: align(right, counter(page).display("i")),
footer: align(right, context counter(page).display("i")),
)
body
}
Expand All @@ -33,7 +33,7 @@
#align(left, [
*Designed by:* #ctx.author #h(2pt) \
*Witnessed by:* #ctx.witness
#h(1fr) #counter(page).display()
#h(1fr) #context counter(page).display()
])
])
body
Expand All @@ -42,7 +42,7 @@
#let appendix-entry(ctx: (:), body) = {
show: page.with(
header: components.title(ctx.title),
footer: align(right, counter(page).display()),
footer: align(right, context counter(page).display()),
)

body
Expand Down

0 comments on commit 339b8ac

Please sign in to comment.