example/src/sqwl/cms/Content.scala
changeset 12 e7512f9dc903
parent 10 4b5313097a4d
child 13 216da61215db
--- 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] =