From d6b336deae8d1c86e5a1bb736a2462e00f7e530c Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Mon, 19 May 2025 15:33:35 -0700 Subject: [PATCH] Remove file extensions from link tags --- README.md | 1 + site.moon | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc868af..18b1114 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ or ## todo +* remove dates from html output and links * page titles * draft documents diff --git a/site.moon b/site.moon index 6dff499..6d6274d 100644 --- a/site.moon +++ b/site.moon @@ -75,10 +75,10 @@ list_posts = (page, limit) -> import section, h3, a, time from tag [section { - h3 { a { href: meta.target .. ".html", meta.title or titleize_slug meta.id }} + h3 { a { href: meta.target, meta.title or titleize_slug meta.id }} time { publish_date source } { "—", if meta.blurb then html.builders.text! meta.blurb } - a { class: "read-post-link", href: meta.target .. ".html", + a { class: "read-post-link", href: meta.target, "Read post →" } } for { meta: meta, source: source } in *posts[1, limit or #posts]]