Fix paths

This commit is contained in:
MrLetsplay 2024-01-17 21:29:48 +01:00
parent 2387e6126a
commit 6e3f5b4bcd
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -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());