summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php34
1 files changed, 16 insertions, 18 deletions
diff --git a/index.php b/index.php
index e94c87a..0ba4857 100644
--- a/index.php
+++ b/index.php
@@ -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>