Skip to content

Commit

Permalink
fix: removes pages content from index.html (#2541)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Nov 27, 2023
1 parent 9bc5496 commit b54b419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/web/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b54b419

Please sign in to comment.