diff options
author | Adam T. Carpenter <atc@53hor.net> | 2023-05-09 21:24:53 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2023-05-09 21:24:53 -0400 |
commit | e0bce1a7ae048d75ff74cc99af4d0b446a03710e (patch) | |
tree | 0babbef5ddeb7622b53c0e65827a6278a95c61f9 /pages | |
parent | a830f959ed0449032d1c67a68da3619b004333d8 (diff) | |
download | 53hor-e0bce1a7ae048d75ff74cc99af4d0b446a03710e.tar.xz 53hor-e0bce1a7ae048d75ff74cc99af4d0b446a03710e.zip |
feat: simplify with bottom nav
Inspired by https://bt.ht/
Diffstat (limited to 'pages')
-rw-r--r-- | pages/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/index.php b/pages/index.php index 6bc999f..111e84e 100644 --- a/pages/index.php +++ b/pages/index.php @@ -1,6 +1,6 @@ <h1> The World Wide Web pages of Adam Carpenter (53hornet) </h1> -<ul> +<dl> <?php $posts = scandir('./posts', SCANDIR_SORT_DESCENDING); $posts = array_filter($posts, fn ($post) => !empty($post) && $post != '.' && $post != '..'); @@ -10,7 +10,7 @@ $title = str_replace('h1', 'span', fgets(fopen("./posts/$post", 'r'))); $date = str_split($post, 10)[0]; $post = str_replace('.php', '', $post); - printf('<li> <code>%s</code> <a href="/%s">%s</a> </li>', $date, $post, $title); + printf('<dt> <code>%s</code> </dt> <dd><a href="/%s">%s</a> </dd>', $date, $post, $title); } ?> -</ul> +</dl> |