-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.typ
67 lines (48 loc) · 1.16 KB
/
main.typ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#set page(
numbering: "1",
number-align: center,
)
#set heading(numbering: "1.")
#set par(justify: true)
#set text(
font: "Helvetica",
)
#show "__GHOST_URL__": "https://internetfreedom.in"
#show "GHOST_URL/": "https://internetfreedom.in"
#align(center, text(18pt)[
*Internet Freedom Foundation* \
New Delhi, India
])
#align(center+horizon,[
#image("logo.png", width: 50%)
])
#align(bottom+center)[
#set par(justify: false)
*Last Update at: Sun Jun 2 19:53:33 EEST 2024 * \
This document is an attempt to create a print-friendly archive of the entirety of content publically available at \ https://internetfreedom.in.
]
#pagebreak()
#outline()
#pagebreak()
#let p(post) = [
== #post.title
#v(2pt)
*published on* = #post.published_at
#post.plaintext
#pagebreak()
]
#let ghostToPDF(db) = [
= Posts
#for (post) in (db.db.at(0).data.posts) {
if (post.visibility == "public" and post.type == "post" and post.status != "draft") {
p(post)
}
}
= Pages
#for (post) in (db.db.at(0).data.posts) {
if (post.visibility == "public" and post.type == "page" and post.status != "draft") {
p(post)
}
}
]
#ghostToPDF(json("iff.json"))