Adjust app layout
This commit is contained in:
@@ -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 == "/",
|
||||
|
||||
Reference in New Issue
Block a user