Skip to content

post-name.html or index.html #67

Answered by guilhermecomum
pprevos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pprevos , thanks for your interest in weblorg, sorry the delay!
It's easy to do this with weblorg :D
In the publish.el when define your post routes you can use

(weblorg-route
 :name "post"
 :input-pattern "posts/*.org"
 :template "post.html"
 :output "{{ slug }}/index.html"
 :url "/{{ slug }}")

And to link to the post page
<a href="{{ url_for("post", slug=post.slug) }}">{{ post.title }}</a>

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pprevos
Comment options

Answer selected by pprevos
Comment options

You must be logged in to vote
1 reply
@guilhermecomum
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants