--- a/example/src/sqwl/cms/Content.scala Thu Dec 06 14:03:54 2018 +0100
+++ b/example/src/sqwl/cms/Content.scala Thu Dec 06 15:19:41 2018 +0100
@@ -63,7 +63,8 @@
def styleSheet =
("site.css", Paths.get("example/content/public/css/site.css"))
def articlesByTag(t: iTag): Seq[iArticle] = Seq()
- def articlesByCategory(c: iCategory): Seq[iArticle] = Seq()
+ def articlesByCategory(c: iCategory): Seq[iArticle] =
+ Article.values.filter(_.category contains(c))
def tags: Seq[iTag] = Seq()
def categories: Seq[iCategory] = Category.values
def articleByPath(path: String): Option[iArticle] =