Adjust app layout

This commit is contained in:
2026-06-16 15:24:21 +02:00
parent 9ed6475775
commit db17f94627
5 changed files with 26 additions and 25 deletions
-5
View File
@@ -318,13 +318,8 @@ func (h *handler) serveDir(w http.ResponseWriter, r *http.Request, urlPath, fsPa
rawContent = "# " + pageTitle(urlPath) + "\n\n"
}
parent := ""
if urlPath != "/" {
parent = parentURL(urlPath)
}
data := pageData{
Title: title,
ParentURL: parent,
CanEdit: true,
EditMode: editMode,
IsRoot: urlPath == "/",