From 18581b3ea43c04bb263857be58b26cdf84a42ebd Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Mon, 16 Jun 2025 20:18:05 -0700 Subject: [PATCH] Remove dates from html filenames and links --- README.md | 1 - html/.gitignore | 24 ++++++++++++------------ site.moon | 8 +++++--- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 18b1114..fc868af 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,6 @@ or ## todo -* remove dates from html output and links * page titles * draft documents diff --git a/html/.gitignore b/html/.gitignore index c772d5e..9210aa0 100644 --- a/html/.gitignore +++ b/html/.gitignore @@ -1,14 +1,14 @@ app.css index.html -posts/2023-08-03-recursively-list-all-files-in-a-directory-with-elixir.html -posts/2023-09-15-open-an-iex-shell-from-an-elixir-script.html -posts/2023-10-08-start-erlangs-dialyzer-with-gui-from-a-docker-container.html -posts/2023-10-16-fix-distortion-introduced-when-transforming-multiview-projections-to-isometric.html -posts/2023-11-01-deploy-elixir-generated-html-with-docker-on-digitalocean.html -posts/2023-11-15-test-mix-task-file-modify.html -posts/2023-12-01-build-static-website-generator-part-1.html -posts/2024-01-01-build-a-neovim-qt-appimage-from-source.html -posts/2024-11-03-set-up-a-gitweb-server.html -posts/2024-11-11-resize-a-qemu-disk-image.html -posts/2025-01-18-publish-markdown-documents-as-static-web-pages-with-pandoc-and-phoenix.html -posts/index.html \ No newline at end of file +posts/build-a-neovim-qt-appimage-from-source.html +posts/build-static-website-generator-part-1.html +posts/deploy-elixir-generated-html-with-docker-on-digitalocean.html +posts/fix-distortion-introduced-when-transforming-multiview-projections-to-isometric.html +posts/index.html +posts/open-an-iex-shell-from-an-elixir-script.html +posts/publish-markdown-documents-as-static-web-pages-with-pandoc-and-phoenix.html +posts/recursively-list-all-files-in-a-directory-with-elixir.html +posts/resize-a-qemu-disk-image.html +posts/set-up-a-gitweb-server.html +posts/start-erlangs-dialyzer-with-gui-from-a-docker-container.html +posts/test-mix-task-file-modify.html \ No newline at end of file diff --git a/site.moon b/site.moon index 6d6274d..2743030 100644 --- a/site.moon +++ b/site.moon @@ -93,12 +93,14 @@ sitegen.create => add "blog.html", target: "posts/index", template: "blog" for path, target in pairs posts "docs" + id = extract_id path + add path, - target: target + target: Path.join Path.basepath(target), id template: "post" is_a: "post" - publish_date: publish_date(path) - id: extract_id(path) + publish_date: publish_date path + id: id titleize: (slug) -> html.build -> titleize_slug(slug) -- replace post markdown yaml headers with moonscript headers