mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-07 22:32:55 -04:00
layout updates
This commit is contained in:
parent
337f615dd3
commit
849dc2dfb5
5 changed files with 56 additions and 35 deletions
|
@ -101,8 +101,9 @@ class Converter:
|
|||
description = description_txt_path.open().read()
|
||||
|
||||
# Copy the front image
|
||||
front_image = pathlib.Path(workingDirectory) / ("front_image" + pathlib.Path(toml_front_matter['extra']['blogimage']).suffix)
|
||||
shutil.copy(self.anarsec_root / "static" / toml_front_matter['extra']['blogimage'].removeprefix("/"), front_image)
|
||||
blogimageid = "blogimagepng" if "blogimagepng" in toml_front_matter["extra"] else "blogimage"
|
||||
front_image = pathlib.Path(workingDirectory) / ("front_image" + pathlib.Path(toml_front_matter['extra'][blogimageid]).suffix)
|
||||
shutil.copy(self.anarsec_root / "static" / toml_front_matter['extra'][blogimageid].removeprefix("/"), front_image)
|
||||
|
||||
# Copy the back image
|
||||
back_image = pathlib.Path(workingDirectory) / "back_image.png"
|
||||
|
@ -160,6 +161,7 @@ class Converter:
|
|||
lastediteddate: "{toml_front_matter["extra"]["dateedit"]}",
|
||||
description: "{description}",
|
||||
subtitle: "{toml_front_matter.get("description")}",
|
||||
category: "{toml_front_matter["taxonomies"]["categories"][0]}",
|
||||
content
|
||||
)
|
||||
{typst_path.open().read()}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue