From a469ccd4dbf6650cd1c0c1fd9b3bca5ee99498c9 Mon Sep 17 00:00:00 2001 From: derpyzza Date: Wed, 30 Oct 2024 00:19:36 +0500 Subject: [PATCH] removes the date from the generated filenames --- jenny-doc.md | 9 +++++++++ jenny.py | 2 +- public/{220510-about-jenny.html => about-jenny.html} | 0 public/archive.html | 2 +- ...fect-script.html => hacky-script-perfect-script.html} | 0 public/{240525-on-writing.html => on-writing.html} | 0 ...ons-season-2.html => star-wars-visions-season-2.html} | 0 ...iting-systems-evolved-from-material-limitations.html} | 0 8 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 jenny-doc.md rename public/{220510-about-jenny.html => about-jenny.html} (100%) rename public/{230512-hacky-script-perfect-script.html => hacky-script-perfect-script.html} (100%) rename public/{240525-on-writing.html => on-writing.html} (100%) rename public/{240116-star-wars-visions-season-2.html => star-wars-visions-season-2.html} (100%) rename public/{230513-writing-systems-evolved-from-material-limitations.html => writing-systems-evolved-from-material-limitations.html} (100%) diff --git a/jenny-doc.md b/jenny-doc.md new file mode 100644 index 0000000..d083919 --- /dev/null +++ b/jenny-doc.md @@ -0,0 +1,9 @@ +# Jenny, the static site generator script + +# Supported commands: + +post_title: string +post_date: date specified in the format `YYYY.MM.DD` +post_tags: list of tags, separated by a `+` +post_languages: list of languages in the post, for including the font files for the languages. defaults to 'en'. +has_toc: "true" or "false". can be in any casing. diff --git a/jenny.py b/jenny.py index 4f66e1a..0b252c6 100755 --- a/jenny.py +++ b/jenny.py @@ -336,7 +336,7 @@ def process_posts(): post['post_content'] = process_code_blocks(post['post_content']) file_name = os.path.basename( f ) - destination = os.path.join( out_dir , os.path.splitext( file_name )[ 0 ] + ".html" ) + destination = os.path.join( out_dir , os.path.splitext( file_name )[ 0 ][7:] + ".html" ) post["dest"] = destination destination.rstrip(".md") diff --git a/public/220510-about-jenny.html b/public/about-jenny.html similarity index 100% rename from public/220510-about-jenny.html rename to public/about-jenny.html diff --git a/public/archive.html b/public/archive.html index aaac3e0..d3be381 100644 --- a/public/archive.html +++ b/public/archive.html @@ -36,7 +36,7 @@

Archive

Here's all of my blogposts. They're written on various subjects, mostly on whatever catches my interest at the time of writing the post.


diff --git a/public/230512-hacky-script-perfect-script.html b/public/hacky-script-perfect-script.html similarity index 100% rename from public/230512-hacky-script-perfect-script.html rename to public/hacky-script-perfect-script.html diff --git a/public/240525-on-writing.html b/public/on-writing.html similarity index 100% rename from public/240525-on-writing.html rename to public/on-writing.html diff --git a/public/240116-star-wars-visions-season-2.html b/public/star-wars-visions-season-2.html similarity index 100% rename from public/240116-star-wars-visions-season-2.html rename to public/star-wars-visions-season-2.html diff --git a/public/230513-writing-systems-evolved-from-material-limitations.html b/public/writing-systems-evolved-from-material-limitations.html similarity index 100% rename from public/230513-writing-systems-evolved-from-material-limitations.html rename to public/writing-systems-evolved-from-material-limitations.html