1
0
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:
Amir Raminfar
2023-11-26 19:41:24 -08:00
committed by GitHub
parent 9bc5496b0e
commit b54b419a08

View File

@@ -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
}