mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
up paths
This commit is contained in:
parent
895996cf6b
commit
8daf1e23e4
2055 changed files with 119377 additions and 31850 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue