mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-08 14:52:54 -04:00
fix typst images
This commit is contained in:
parent
5d9796b043
commit
d10f774921
4 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
base_url = "https://www.anarsec.guide"
|
||||
base_url = "anarsec.guide"
|
||||
title = "AnarSec"
|
||||
default_language = "en"
|
||||
theme = "DeepThought"
|
||||
|
|
|
@ -127,6 +127,10 @@ class Converter:
|
|||
recommendations = re.search(r'\+{3}.*?\+{3}(.*)', recommendations_file.open().read(), re.MULTILINE | re.DOTALL).group(1)
|
||||
markdown_content += f"\n\n# Recommendations\n\n{recommendations}\n\n"
|
||||
|
||||
# Make all images paths relative in the Markdown content
|
||||
for extension in ["jpg", "png", "webp", "jpeg"]:
|
||||
markdown_content = re.sub(f'\\(\\/posts/{input_path.parent.name}/(.*?\.{extension})\\)', lambda match: f'({match.group(1)})', markdown_content)
|
||||
|
||||
# Replace all .webp images to .png images in the Markdown content
|
||||
markdown_content = re.sub(r'\((.*?\.webp)\)', lambda match: f'({match.group(1)}.png)', markdown_content)
|
||||
|
||||
|
|
|
@ -605,6 +605,9 @@ body[theme="dark"] .navbar-item
|
|||
body[theme="dark"] .navbar-item:hover
|
||||
color: black !important
|
||||
|
||||
body[theme="dark"] .navbar-item:focus
|
||||
color: black !important
|
||||
|
||||
body[theme="dark"] p
|
||||
color: #c9c7c9 !important
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue