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