diff --git a/app/routes/music.php b/app/routes/music.php index a285110..91bc2fb 100755 --- a/app/routes/music.php +++ b/app/routes/music.php @@ -2,6 +2,10 @@ $app->get('/music', function() use($app) { - $app->render('music.twig'); + $albums = $app->album->all(); + + $app->render('music.twig', [ + 'albums' => $albums, + ]); })->name('music'); diff --git a/app/views/music.twig b/app/views/music.twig index 6479e19..27c2482 100755 --- a/app/views/music.twig +++ b/app/views/music.twig @@ -13,45 +13,43 @@

Music

-
+ +
- - - - -
- -
-

Opting Out EP

-
    -
  1. Opting Out
  2. -
  3. Elsewhere
  4. -
  5. What Happened to Forever?
  6. -
  7. Lady
  8. -
+ +
+
+ {{ albums[0].get.title }} +
+

{{ albums[0].get.title }}

+ {% if albums[0].get.description %} +
+

{{ albums[0].get.description }}

+ {% endif %} +
-
-

Brain Scrub - Single

-
    -
  1. Brain Scrub
  2. -
+
+ + +
+
+
+ + +
+ {% for album in albums %} + +
+
+ {{ album.get.title }} +
+
{{ album.get.title }}
+
+
- + {% endfor %}
{% endblock %}