Skip to content

Commit

Permalink
🎨 Linear page numbers (#24)
Browse files Browse the repository at this point in the history
* 🎨 Reformated footer for page numbers

* πŸ’¬ Integrated author and witness args into footer
  • Loading branch information
BestUsernamEver authored Feb 17, 2024
1 parent 4975427 commit eb68056
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions themes/linear/entries.typ
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
}

#let body-entry(context: (:), body) = {
show: page.with(margin: (top: 88pt), header: [
show: page.with(margin: (top: 88pt),
header: [
#set align(center)
#set text(size: 30pt)
#box(
Expand All @@ -59,16 +60,27 @@
inset: 10pt,
[#context.title],
)
], footer: [
#set align(left)
Written by:
#h(30%)
Witnessed by:
], background: set-margins(8%, 8%))
],
footer: [
#grid(
columns: (2fr, 2fr, 1fr),
[
Written by: #h(10pt) #context.author
],
[
Witnessed by: #h(10pt) #context.witness
],
[
#align(right, box(fill: surface-1, outset: 8pt, counter(page).display()))
]
)
],
background: set-margins(8%, 8%))

show heading: it => {
set-heading(it, context.type)
}

show raw.where(block: false): box.with(
fill: surface-1,
inset: (x: 4pt, y: 0pt),
Expand All @@ -79,6 +91,7 @@
inset: 8pt,
width: 100%
)

body
}

Expand Down

0 comments on commit eb68056

Please sign in to comment.