mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
build with latest articles on homepage
This commit is contained in:
parent
e6ec57e576
commit
579e9116b7
22 changed files with 1013 additions and 3544 deletions
|
@ -145,7 +145,7 @@ def enrich_one_file(html_content: str, partials: dict = {"header_page": "", "foo
|
|||
<nav class="footer-nav">
|
||||
{template_content['NAVIGATION']}
|
||||
<a href="/tags/">Tags</a>
|
||||
<a href=""{template_content['NDD']}/feed/">Flux Atom</a>
|
||||
<a href="{template_content['NDD']}/feed/">Flux Atom</a>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -196,7 +196,7 @@ for root_path, dirs, files in liste_fichiers_du_blog_convertis :
|
|||
if file.endswith(".html"):
|
||||
# mylog(' ----------- enrich_html: file:'+ os.path.join(root_path, file))
|
||||
count_articles+=1
|
||||
mylog(' ----------- enrich_html: CSS inline: ', inline_the_css)
|
||||
# mylog(' ----------- enrich_html: CSS inline: ', inline_the_css)
|
||||
|
||||
# Ouvrir le fichier HTML en mode lecture
|
||||
with open(os.path.join(root_path, file), "r") as f:
|
||||
|
@ -204,10 +204,10 @@ for root_path, dirs, files in liste_fichiers_du_blog_convertis :
|
|||
|
||||
html_content = enrich_one_file(html_content, partials)
|
||||
html_path_enriched = os.path.join(root_path, file)
|
||||
mylog(' ----------- enrich_html: html_path_enriched ============> ', html_path_enriched)
|
||||
# mylog(' ----------- enrich_html: html_path_enriched ============> ', html_path_enriched)
|
||||
# Écrire le contenu modifié dans le fichier HTML
|
||||
with open(html_path_enriched, "w") as f:
|
||||
f.write(html_content)
|
||||
mylog('\n ----------- enrich_html: html écrit ', html_path_enriched)
|
||||
# mylog('\n ----------- enrich_html: html écrit ', html_path_enriched)
|
||||
|
||||
print('articles listés :',count_articles)
|
Loading…
Add table
Add a link
Reference in a new issue