diff options
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> |