Remove file extensions from link tags

This commit is contained in:
Catalin Constantin Mititiuc 2025-05-19 15:33:35 -07:00
parent 3ced625dff
commit d6b336deae
2 changed files with 3 additions and 2 deletions

View File

@ -72,6 +72,7 @@ or
## todo ## todo
* remove dates from html output and links
* page titles * page titles
* draft documents * draft documents

View File

@ -75,10 +75,10 @@ list_posts = (page, limit) ->
import section, h3, a, time from tag import section, h3, a, time from tag
[section { [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 } time { publish_date source }
{ "—", if meta.blurb then html.builders.text! meta.blurb } { "—", 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 →" "Read post →"
} }
} for { meta: meta, source: source } in *posts[1, limit or #posts]] } for { meta: meta, source: source } in *posts[1, limit or #posts]]