Fix paths
This commit is contained in:
parent
2387e6126a
commit
6e3f5b4bcd
@ -175,7 +175,7 @@ public class MdBlog {
|
||||
indexMd = indexMd.replace("{posts}", postsInDir.stream()
|
||||
.map(p -> {
|
||||
String postMd = indexPostTemplate;
|
||||
Post post = posts.get(path.concat(p));
|
||||
Post post = posts.get(path == null ? p : path.concat(p));
|
||||
|
||||
HtmlElement title = new HtmlElement("a");
|
||||
title.setAttribute("href", p.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user