mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-30 17:47:28 +01:00
fix: removes pages content from index.html (#2541)
This commit is contained in:
@@ -57,8 +57,8 @@ func (h *handler) executeTemplate(w http.ResponseWriter, req *http.Request) {
|
||||
if err != nil {
|
||||
log.Errorf("error reading content: %v", err)
|
||||
} else if len(pages) > 0 {
|
||||
for _, page := range pages {
|
||||
page.Content = ""
|
||||
for i, _ := range pages {
|
||||
pages[i].Content = ""
|
||||
}
|
||||
config["pages"] = pages
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user