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