]> git.bts.cx Git - garden.git/blobdiff - templates/base.php
Added background
[garden.git] / templates / base.php
index 83217f2769b29a87d540d9b9cd576f041c0394d7..0a72302ba3ee5bbcedc9243e308c8f349dd783a0 100644 (file)
@@ -6,6 +6,9 @@
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
+               <link rel="stylesheet" href="<?= garden_site_url('style', 'screen.css') ?>">
+               <!--<link rel="alternate" type="application/atom+xml" title="bts.cx" href="<?= garden_site_url('feed') ?>" />-->
+
                <title><?= site_name ?> - <?= $article->title; ?></title>
        </head>
 
                        <p>Find me <a href="https://mastodon.gamedev.place/@btsherratt" rel="me">@btsherratt</a> or on <a href="https://bts.itch.io/">itch.io</a></p>
                </header>
 
+               <nav>
+                       <ul>
+                       <?php foreach($categorised_items as $category_name => $category_items): ?>
+                               <?php if ($category_name != ''): ?>
+                               <li>
+                                       <?= $category_name ?>
+                                       <ul>
+                                               <?php foreach($category_items as $category_item): ?>
+                                                       <li><a href="<?= $category_item->url ?>"><?= $category_item->title ?></a></li>
+                                               <?php endforeach; ?>
+                                       </ul>
+                               </li>
+                               <?php else: ?>
+                                       <?php foreach($category_items as $category_item): ?>
+                                               <li><a href="<?= $category_item->url ?>"><?= $category_item->title ?></a></li>
+                                       <?php endforeach; ?>
+                               <?php endif ?>
+                       <?php endforeach ?>
+                       </ul>
+               </nav>
+
                <?= garden_template_content(); ?>
 
                <footer>