feat: add 404 page, use table for page index, fix info in pages
This commit is contained in:
parent
ea7e7558ca
commit
dbaeaf24fa
6 changed files with 48 additions and 25 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue