mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-07 22:32:55 -04:00
update most guides
This commit is contained in:
parent
be05046783
commit
3ce6491c8f
21 changed files with 86 additions and 79 deletions
|
@ -90,6 +90,9 @@ class Converter:
|
|||
# Grab the description
|
||||
description = re.search(r'^(.*?)\<\!\-\- more \-\-\>', markdown_content, re.DOTALL | re.MULTILINE).group(1).strip("\n ")
|
||||
|
||||
# Add the intro heading
|
||||
markdown_content = f"# Introduction\n\n{markdown_content}"
|
||||
|
||||
# Parse the description
|
||||
description_md_path = pathlib.Path(workingDirectory) / "description.md"
|
||||
description_txt_path = pathlib.Path(workingDirectory) / "description.txt"
|
||||
|
@ -156,6 +159,7 @@ class Converter:
|
|||
backimage: "{back_image.name}",
|
||||
lastediteddate: "{toml_front_matter["extra"]["dateedit"]}",
|
||||
description: "{description}",
|
||||
subtitle: "{toml_front_matter.get("description")}",
|
||||
content
|
||||
)
|
||||
{typst_path.open().read()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue