Prefill Empty pages

This commit is contained in:
2026-04-23 14:34:07 +02:00
parent 207c16ed29
commit df41cfa8c8
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -187,6 +187,8 @@ func (h *handler) serveDir(w http.ResponseWriter, r *http.Request, urlPath, fsPa
if sectionIndex < len(sections) {
rawContent = string(sections[sectionIndex])
}
} else if editMode && rawContent == "" && urlPath != "/" {
rawContent = "# " + pageTitle(urlPath) + "\n\n"
}
data := pageData{