]> git.bts.cx Git - garden.git/blobdiff - templates/base.php
changes to footer
[garden.git] / templates / base.php
index ee3d26966fc0f839aa5d7360509122bb402ca8e4..12cc583b5cb64a3273abc26361fb7609425b714a 100644 (file)
        </head>
 
        <body>
        </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>
+                       <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 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>
+                                       <?php endif ?>
+                               <?php endforeach ?>
+                               </ul>
+                       </nav>
 
 
-               <?= garden_template_content(); ?>
+                       <?= garden_template_content(); ?>
 
 
-               <footer>
-                       <div>
-                               Content by Ben Sherratt 2025
-                       </div>
-               </footer>
+                       <footer>
+                               <div>
+                                       Content by Ben Sherratt 2025
+                               </div>
+                       </footer>
+               </div>
        </body>
 </html>
        </body>
 </html>