diff options
author | 53hornet <atc@53hor.net> | 2021-12-11 16:44:38 -0500 |
---|---|---|
committer | 53hornet <atc@53hor.net> | 2021-12-11 16:44:38 -0500 |
commit | ee65e8eefba9ebeca77aa447b4dbe1743a7a2849 (patch) | |
tree | bfd1820a01ebdd42ee71aae343ea0274d4835eb3 /includes | |
parent | 69cf2d0ab47f0389ee7dbc594d99db0e99c2c63c (diff) | |
download | 53hor-ee65e8eefba9ebeca77aa447b4dbe1743a7a2849.tar.xz 53hor-ee65e8eefba9ebeca77aa447b4dbe1743a7a2849.zip |
chore: organized index page, moved noscript, add links
Diffstat (limited to 'includes')
-rw-r--r-- | includes/nav.php | 8 | ||||
-rw-r--r-- | includes/render_index.php | 24 |
2 files changed, 8 insertions, 24 deletions
diff --git a/includes/nav.php b/includes/nav.php index 03e9c5f..26f3913 100644 --- a/includes/nav.php +++ b/includes/nav.php @@ -60,4 +60,12 @@ </li> </ul> </nav> + +<header> + <noscript> + JavaScript? Where we're going we don't need JavaScript. + </noscript> +</header> + + <hr /> diff --git a/includes/render_index.php b/includes/render_index.php deleted file mode 100644 index d90627b..0000000 --- a/includes/render_index.php +++ /dev/null @@ -1,24 +0,0 @@ -<header> - <noscript> - JavaScript? Where we're going we don't need JavaScript. - </noscript> -</header> - -<h1 style="text-align: center"> - The World Wide Web pages of Adam Carpenter (53hornet) -</h1> - -<ul> - <?php - $posts = scandir('./posts', SCANDIR_SORT_DESCENDING); - $posts = array_filter($posts, fn ($post) => !empty($post) && $post != '.' && $post != '..'); - #$posts = array_slice($posts, 0, 1000); - - foreach ($posts as &$post) { - $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); - } - ?> -</ul> |