Remove file extensions from link tags
This commit is contained in:
parent
3ced625dff
commit
d6b336deae
@ -72,6 +72,7 @@ or
|
||||
|
||||
## todo
|
||||
|
||||
* remove dates from html output and links
|
||||
* page titles
|
||||
|
||||
* draft documents
|
||||
|
@ -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]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user