mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
script de stats
This commit is contained in:
parent
6d77de4696
commit
759f30f628
7 changed files with 196 additions and 109 deletions
|
@ -56,7 +56,6 @@ if not os.path.exists(blog_path):
|
|||
exit(1)
|
||||
|
||||
|
||||
uuid_value=''
|
||||
# Génération du nom de fichier org avec la date et le slug
|
||||
now = datetime.now()
|
||||
# date_string = now.strftime("%Y-%m-%d")
|
||||
|
@ -80,24 +79,30 @@ import uuid
|
|||
|
||||
def create_uuid_property():
|
||||
uuid_value = uuid.uuid4()
|
||||
return f":PROPERTIES:\n:ID: {uuid_value}\n:END:\n"
|
||||
return uuid_value
|
||||
|
||||
# Écriture du fichier org
|
||||
with open(filename, "w") as f:
|
||||
uuid = create_uuid_property()
|
||||
f.write(f"""
|
||||
#+title: {slug}
|
||||
:PROPERTIES:
|
||||
:ID: {uuid}
|
||||
:END:
|
||||
|
||||
|
||||
#+title: {args.title}
|
||||
#+post_ID:
|
||||
#+post_slug: organisation-de-taches-orgmode
|
||||
#+post_url: https://www.ciperbliss.com/{now.year}/{slug}
|
||||
#+post_title: {args.title}
|
||||
#+post_tags:
|
||||
#+post_series:
|
||||
#+post_series:
|
||||
#+post_type: post
|
||||
#+post_status: publish
|
||||
#+post_date_published: <{date_string_full}>
|
||||
#+post_date_modified: <{date_string_full}>
|
||||
#+post_index_page_roam_id: {uuid_value}
|
||||
#+BLOG: cipherbliss_blog {args.blog_dir}
|
||||
#+post_index_page_roam_id: {uuid}
|
||||
#+BLOG: {args.blog_dir}
|
||||
|
||||
* {args.title}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue