summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-12-11 16:44:38 -0500
committer53hornet <atc@53hor.net>2021-12-11 16:44:38 -0500
commitee65e8eefba9ebeca77aa447b4dbe1743a7a2849 (patch)
treebfd1820a01ebdd42ee71aae343ea0274d4835eb3 /pages
parent69cf2d0ab47f0389ee7dbc594d99db0e99c2c63c (diff)
download53hor-ee65e8eefba9ebeca77aa447b4dbe1743a7a2849.tar.xz
53hor-ee65e8eefba9ebeca77aa447b4dbe1743a7a2849.zip
chore: organized index page, moved noscript, add links
Diffstat (limited to 'pages')
-rw-r--r--pages/index.php18
-rw-r--r--pages/links.php4
2 files changed, 22 insertions, 0 deletions
diff --git a/pages/index.php b/pages/index.php
new file mode 100644
index 0000000..18476bc
--- /dev/null
+++ b/pages/index.php
@@ -0,0 +1,18 @@
+<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>
diff --git a/pages/links.php b/pages/links.php
index 6c75b67..6281f75 100644
--- a/pages/links.php
+++ b/pages/links.php
@@ -6,6 +6,10 @@
<h2>Automotive</h2>
+<ul>
+ <li><a href="https://hudsonrestoration1948-54.com/">Hudson Stepdown Restoration (Ken "Yogi" Cates)</a></li>
+</ul>
+
<h2>*nix</h2>
<ul>