Skip to content

Commit

Permalink
Fix deprecated locate syntax (#12)
Browse files Browse the repository at this point in the history
Change the syntax from the deprecated locate, to the new context
  • Loading branch information
darvan42 authored Oct 19, 2024
1 parent 5e82556 commit f044cc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@
},

footer-descent: 0%,
footer: locate(loc => {
footer: context {
show: pad.with(top: 12pt, bottom: 12pt)

let current-page = loc.page()
let page-count = counter(page).final(loc).at(0)
let current-page = here().page()
let page-count = counter(page).final().first()

grid(
columns: 1fr,
Expand All @@ -186,7 +186,7 @@
footer
}
)
}),
},
)

// Reverse the margin for the header, the address box and the information box
Expand Down

0 comments on commit f044cc7

Please # to comment.