Fix the blog path
This commit is contained in:
parent
ac64f0f197
commit
3619764a7d
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue