]> git.bts.cx Git - garden.git/blobdiff - templates/base.php
Update screen
[garden.git] / templates / base.php
index 83217f2769b29a87d540d9b9cd576f041c0394d7..12cc583b5cb64a3273abc26361fb7609425b714a 100644 (file)
@@ -6,19 +6,46 @@
                <meta http-equiv="X-UA-Compatible" content="IE=edge">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
                <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>
 
        <body>
                <title><?= site_name ?> - <?= $article->title; ?></title>
        </head>
 
        <body>
-               <header>
-                       <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>
+               <div class="container">
+                       <header>
+                               <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(); ?>
+                       <?= garden_template_content(); ?>
 
 
-               <footer>
-                       <div>
-                       </div>
-               </footer>
+                       <footer>
+                               <div>
+                                       Content by Ben Sherratt 2025
+                               </div>
+                       </footer>
+               </div>
        </body>
 </html>
        </body>
 </html>