This commit is contained in:
Tykayn 2024-11-19 13:49:39 +01:00 committed by tykayn
parent 895996cf6b
commit 8daf1e23e4
2055 changed files with 119377 additions and 31850 deletions

View file

@ -5,7 +5,7 @@ from datetime import datetime
# Chemin du dossier source
import argparse
from utils import find_first_level1_title, find_year_and_slug, find_extract_in_content_org
from utils import find_first_level1_title, find_year_and_slug_on_filename, find_extract_in_content_org
from website_config import configs_sites
# Configuration des arguments de la ligne de commande
@ -32,7 +32,7 @@ for root, dirs, files in os.walk(blog_dir):
for file in files:
if file.endswith(".org"):
print(os.path.join(root, file))
date_str, annee, slug = find_year_and_slug(file)
date_str, annee, slug = find_year_and_slug_on_filename(file)
# Ouvre le fichier et recherche la première date dans le contenu de l'article
with open(os.path.join(root, file), "r", encoding="utf-8") as f:
content = f.read()