Skip to content

Commit eb68056

Browse files
authored
🎨 Linear page numbers (#24)
* 🎨 Reformated footer for page numbers * πŸ’¬ Integrated author and witness args into footer
1 parent 4975427 commit eb68056

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

β€Žthemes/linear/entries.typβ€Ž

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
}
5050

5151
#let body-entry(context: (:), body) = {
52-
show: page.with(margin: (top: 88pt), header: [
52+
show: page.with(margin: (top: 88pt),
53+
header: [
5354
#set align(center)
5455
#set text(size: 30pt)
5556
#box(
@@ -59,16 +60,27 @@
5960
inset: 10pt,
6061
[#context.title],
6162
)
62-
], footer: [
63-
#set align(left)
64-
Written by:
65-
#h(30%)
66-
Witnessed by:
67-
], background: set-margins(8%, 8%))
63+
],
64+
footer: [
65+
#grid(
66+
columns: (2fr, 2fr, 1fr),
67+
[
68+
Written by: #h(10pt) #context.author
69+
],
70+
[
71+
Witnessed by: #h(10pt) #context.witness
72+
],
73+
[
74+
#align(right, box(fill: surface-1, outset: 8pt, counter(page).display()))
75+
]
76+
)
77+
],
78+
background: set-margins(8%, 8%))
6879

6980
show heading: it => {
7081
set-heading(it, context.type)
7182
}
83+
7284
show raw.where(block: false): box.with(
7385
fill: surface-1,
7486
inset: (x: 4pt, y: 0pt),
@@ -79,6 +91,7 @@
7991
inset: 8pt,
8092
width: 100%
8193
)
94+
8295
body
8396
}
8497

0 commit comments

Comments
Β (0)