Compare commits
No commits in common. "42d6e0c198db797b854cbde51694a365b13f27cf" and "e1af2979af66d6750031d71b67e3f7db7f5e908d" have entirely different histories.
42d6e0c198
...
e1af2979af
@ -521,16 +521,9 @@ func ShowPublishedArticles(c *b.Config, db *b.DB, s *b.CookieStore) http.Handler
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
filteredArticles := make([]*b.Article, 0)
|
|
||||||
for _, article := range publishedArticles {
|
|
||||||
if article.Title != "Autogenerated cpolis Issue Article" {
|
|
||||||
filteredArticles = append(filteredArticles, article)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tmpl, err := template.ParseFiles(c.WebDir + "/templates/published-articles.html")
|
tmpl, err := template.ParseFiles(c.WebDir + "/templates/published-articles.html")
|
||||||
tmpl = template.Must(tmpl, err)
|
tmpl = template.Must(tmpl, err)
|
||||||
tmpl.ExecuteTemplate(w, "page-content", filteredArticles)
|
tmpl.ExecuteTemplate(w, "page-content", publishedArticles)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user