diff options
author | 53hornet <atc@53hor.net> | 2021-10-02 21:39:29 -0400 |
---|---|---|
committer | 53hornet <atc@53hor.net> | 2021-10-02 21:39:29 -0400 |
commit | 9aa06b18a2d328a42337db2e5c44578449d96b28 (patch) | |
tree | ac7d30c39ef8511c5839ff488eb228c92a14fa89 /index.php | |
parent | 98ddb63dc1eb266074f124b6ca442883fab22b68 (diff) | |
download | 53hor-9aa06b18a2d328a42337db2e5c44578449d96b28.tar.xz 53hor-9aa06b18a2d328a42337db2e5c44578449d96b28.zip |
fix: remove dupe article tag
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 34 |
1 files changed, 16 insertions, 18 deletions
@@ -8,24 +8,22 @@ include('./includes/head.php'); </noscript> </header> -<article> - <h1 style="text-align: center"> - The World Wide Web pages of Adam Carpenter (53hornet) - </h1> - <ul> - <?php - if ($posts = glob('./posts/*.php')) { - $early = true; +<h1 style="text-align: center"> + The World Wide Web pages of Adam Carpenter (53hornet) +</h1> +<ul> + <?php + if ($posts = glob('./posts/*.php')) { + $early = true; - foreach (array_reverse($posts) as $post) { - if (!empty($post) && $post != '.' && $post != '..') { - $post_name = explode('/', $post)[2]; - $date = implode('-', array_slice(explode('-', $post_name), 0, 3)); - include($post); - printf('<li><a href="/%s">%s</a> <code>%s</code></li>', $post, $title, $date); - } + foreach (array_reverse($posts) as $post) { + if (!empty($post) && $post != '.' && $post != '..') { + $post_name = explode('/', $post)[2]; + $date = implode('-', array_slice(explode('-', $post_name), 0, 3)); + include($post); + printf('<li><a href="/%s">%s</a> <code>%s</code></li>', $post, $title, $date); } } - ?> - </ul> -</article> + } + ?> +</ul> |