Commit 6f7294ca authored by Romain Bignon's avatar Romain Bignon

fix: post path is relative to the current directory

parent c6fba9e6
......@@ -69,7 +69,7 @@ class BlogListAction(ViewAction):
continue
post = self.Post()
post.path = f.obj.get_name()
post.path = f.obj.path[len(self.ctx.file.path):].lstrip('/')
post.date = f.mtime
post.title = f.obj.path[len(self.ctx.file.path):].replace('_', ' ') \
.lstrip('/') \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment