mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-07-01 09:46:55 -04:00
typst update 0.11
This commit is contained in:
parent
23e65d2563
commit
3660b0a2ec
2 changed files with 8 additions and 9 deletions
BIN
layout/.anarsec_article.typ.swp
Normal file
BIN
layout/.anarsec_article.typ.swp
Normal file
Binary file not shown.
|
@ -88,27 +88,27 @@
|
|||
it.body
|
||||
if type(it.dest) == "string" {
|
||||
if it.dest == "https://anarsec.guide/recommendations" or it.dest == "/recommendations" {
|
||||
text[ (#emph()[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))]
|
||||
})
|
||||
context {
|
||||
let elements = query(label(it.dest.trim("/recommendations#", at: start).trim("/recommendations/#", at: start)))
|
||||
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/#") {
|
||||
locate(location => {
|
||||
let elements = query(heading.where(label: label(it.dest.trim("/glossary#", at: start).trim("/glossary/#", at: start)), level: 2), location)
|
||||
context {
|
||||
let elements = query(heading.where(label: label(it.dest.trim("/glossary#", at: start).trim("/glossary/#", at: start)), level: 2))
|
||||
if elements.len() != 0 {
|
||||
text[#super[†]]
|
||||
}
|
||||
else {
|
||||
footnote[anarsec.guide/glossary]
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
else if it.dest.starts-with("/") {
|
||||
footnote({text[anarsec.guide] + it.dest})
|
||||
|
@ -174,4 +174,3 @@
|
|||
]
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue