layout updates

This commit is contained in:
anarsec 2023-07-11 16:52:07 +00:00
parent 337f615dd3
commit 849dc2dfb5
No known key found for this signature in database
5 changed files with 56 additions and 35 deletions

View file

@ -5,13 +5,61 @@
lastediteddate: none,
description: none,
subtitle: none,
category: none,
content
) = {
// format lists
set list(marker: ([•], [--]))
// front cover
page()[
#set align(center + horizon)
#image(frontimage)
#text(25pt, title)
#{
if subtitle != "None" {
text(18pt, subtitle)
}
}
#set align(center + bottom)
#text(18pt)[Series: #category]
]
// inside cover
page()[
#set align(center + bottom)
#text()[This version of the zine was last edited on #lastediteddate. Visit anarsec.guide to see whether it has been updated since.]
#text()[The dagger symbol #super[] on a word means that there is a glossary entry for it. Ai ferri corti.]
]
// table of contents
page()[
#outline(indent: 20pt, depth: 3)
]
// format links
show link: it => {
it.body
if type(it.dest) == "string" {
if it.dest.starts-with("https://") or it.dest.starts-with("http://") {
if it.dest == "https://anarsec.guide/recommendations" or it.dest == "/recommendations" {
text[ (#emph()[Recommendations])]
}
else if it.dest.starts-with("/recommendations#") or it.dest.starts-with("/recommendations/#") {
locate(location => {
let elements = query(label(it.dest.trim("/recommendations#", at: start).trim("/recommendations/#", at: start)), location)
text[ (#emph()[Recommendations:] #emph(elements.first().body))]
})
}
else if it.dest.starts-with("https://") or it.dest.starts-with("http://") {
footnote[#it.dest.trim("https://", at: start).trim("http://", at: start)]
}
else if it.dest.starts-with("/glossary#") or it.dest.starts-with("/glossary/#") {
@ -31,38 +79,6 @@
})
}
}
// format lists
set list(marker: ([•], [--]))
// front cover
page()[
#set align(center + horizon)
#image(frontimage)
#text(25pt, title)
#{
if subtitle != "None" {
text(18pt, subtitle)
}
}
]
// inside cover
page()[
#set align(center + bottom)
#text()[This version of the zine was last edited on #lastediteddate. Visit anarsec.guide to see whether it has been updated since.]
#text()[The dagger symbol #super[] on a word means that there is a glossary entry for it. Ai ferri corti.]
]
// table of contents
page()[
#outline(indent: 20pt, depth: 3)
]
// content
set page(numbering: "1")
@ -116,3 +132,4 @@
]
]
]