mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-10-09 17:02:45 +02:00
up script pour générer, ajout bouton themes
This commit is contained in:
parent
55e0f2a55c
commit
8abe2f6aad
5 changed files with 71 additions and 6 deletions
|
|
@ -692,8 +692,9 @@ def get_series_name(article_slug, blog_name):
|
|||
:param article: Dictionnaire contenant les informations de l'article
|
||||
:return: Le nom de la série ou None si l'article n'appartient à aucune série
|
||||
"""
|
||||
if blog_name in website_config:
|
||||
for s in website_config[blog_name]['SERIES']:
|
||||
if article_slug in website_config['SERIES'][blog_name][s]['articles']:
|
||||
return s
|
||||
# Utiliser la configuration des sites importée depuis website_config.py
|
||||
if blog_name in configs_sites and 'SERIES' in configs_sites[blog_name]:
|
||||
for serie_key, serie_conf in configs_sites[blog_name]['SERIES'].items():
|
||||
if 'articles' in serie_conf and article_slug in serie_conf['articles']:
|
||||
return serie_key
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue