From 3619764a7de3c458d6b598110afd3769284f1ee6 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 13 Apr 2024 22:02:58 +0300 Subject: [PATCH] Fix the blog path --- scripts/article.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/article.py b/scripts/article.py index c5bb932..f9003f4 100755 --- a/scripts/article.py +++ b/scripts/article.py @@ -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: