Fix the blog path

This commit is contained in:
Awiteb 2024-04-13 22:02:58 +03:00
parent ac64f0f197
commit 3619764a7d
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -159,10 +159,10 @@ def create_social_card(article_name: str) -> None:
print(f"The article {article_name} does not exist.")
sys.exit(1)
os.system(
f"./scripts/social-cards-zola -i blog/{article_name}/index.md -b http://127.0.0.1:1111 -o static/img/social_cards/"
f"./scripts/social-cards-zola -i b/{article_name}/index.md -b http://127.0.0.1:1111 -o static/img/social_cards/"
)
print(f"The social card for the article {article_name} has been created successfully.")
print(f"The url path is: /img/social_cards/blog_{article_name.replace('-', '_')}.jpg")
print(f"The url path is: /img/social_cards/b_{article_name.replace('-', '_')}.jpg")
def main() -> None: