package yatwiki import ( "fmt" "html/template" "net/http" "net/url" ) func (this *WikiServer) routeIndex(w http.ResponseWriter, r *http.Request) { titles, err := this.db.ListTitles(true) // Always load deleted pages, even if we don't display them in the list if err != nil { this.serveInternalError(w, r, err) return } totalRevs, err := this.db.TotalRevisions() if err != nil { this.serveInternalError(w, r, err) return } content := fmt.Sprintf(`