up styles

This commit is contained in:
Tykayn 2025-02-23 17:37:53 +01:00 committed by tykayn
parent 6d2b39414e
commit fa8636185d
7 changed files with 20 additions and 10 deletions

View file

@ -228,11 +228,12 @@ count_articles_updated = 0
for basename, info in files_dict.items():
date_str = info['date']
if date_str > '20240101':
current_year = datetime.now().year
if date_str > f'{current_year}0101':
count_articles_updated += 1
print(f"Nombre d'articles mis à jour après le 01 01 2024 : {count_articles_updated}")
print(f"Nombre d'articles mis à jour après le 01 01 {current_year} : {count_articles_updated}")
def generate_blog_index(json_file, template_file, output_file):