feat: add 404 page, use table for page index, fix info in pages

This commit is contained in:
NaitLee 2025-09-28 15:13:34 +08:00
parent ea7e7558ca
commit dbaeaf24fa
6 changed files with 48 additions and 25 deletions

View file

@ -30,9 +30,17 @@ array_multisort(
);
?>
<?php echo $page["content"] ?>
<ul class="pages-index">
<?php
foreach ($child_pages as $page)
echo "<li><span>", date("Y-m-d", $page["date"]), "</span> | <a href=\"", $page["href"], "\">", $page["title"], "</a></li>\n";
?>
</ul>
<table class="pages">
<tbody>
<?php
foreach ($child_pages as $page)
echo "<tr><td>",
date("Y-m-d", $page["date"]),
"</td><td><a href=\"",
$page["href"],
"\">",
$page["title"],
"</a></td></tr>\n";
?>
</tbody>
</table>