summaryrefslogtreecommitdiffstats
path: root/blog
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-09-26 16:55:27 -0400
committerSquibid <me@zacharyscheiman.com>2023-09-26 16:55:27 -0400
commit13561786a746131091e791187d4793432d2984ad (patch)
tree5a70b65ef22a11617c85e83f0700d7cf2373cbdb /blog
parent48475ae4abd6c7103a1871235a4fcab5dc1b6177 (diff)
downloadsite-13561786a746131091e791187d4793432d2984ad.tar.gz
site-13561786a746131091e791187d4793432d2984ad.tar.bz2
site-13561786a746131091e791187d4793432d2984ad.zip
Big changes!
- Fixed typo in pinned git repos - Add new pinned repo (wallheaven) - Switch blog generation to php - remove useless symlink in blog/
Diffstat (limited to '')
-rw-r--r--blog.php (renamed from blog.html)17
-rw-r--r--blog/It's-Alive!.html2
-rw-r--r--blog/librex-and-dots.html2
-rwxr-xr-xblog/newblog2
-rw-r--r--blog/state-of-the-site.html2
l---------blog/style.css1
6 files changed, 16 insertions, 10 deletions
diff --git a/blog.html b/blog.php
index f9cd986..bcf1767 100644
--- a/blog.html
+++ b/blog.php
@@ -25,11 +25,18 @@
</header>
<hr style="color: #f7f7f7;">
<p id="bloglist">
- <!-- b script marker blog -->
-<a href="/blog/librex-and-dots"> librex and dots</a><span>2023/06/27</span><br>
-<a href="/blog/It's-Alive!"> It's Alive!</a><span>2023/05/01</span><br>
-<a href="/blog/state-of-the-site"> state of the site</a><span>2023/03/11</span><br>
- <!-- e script marker blog -->
+ <?php
+ $path = "blog";
+ $files = scandir($path."/");
+ foreach ($files as $file) {
+ if (preg_match("/.+?(?=\.html|\.php)/", $file, $matches)) {
+ $tags = get_meta_tags($path.'/'.$file);
+ printf('<a href='.$path.'/%s>%s</a><span>%s</span><br>',
+ $matches[0], str_replace("-", " ", $matches[0]),
+ $tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯");
+ }
+ }
+ ?>
</p>
<h2 id="font" style="text-align: center; margin-top: 0;">
<a href="/blog/rss.xml", title="rss">subscribe</a>
diff --git a/blog/It's-Alive!.html b/blog/It's-Alive!.html
index 63a6b66..f55f224 100644
--- a/blog/It's-Alive!.html
+++ b/blog/It's-Alive!.html
@@ -1,6 +1,6 @@
<meta name="date" content="2023/05/01">
<title>It's Alive!</title>
-<link rel=stylesheet href=style.css>
+<link rel=stylesheet href='/style.css'>
<body style="background-color: #161617;">
<p>
Cloning via http(s) now works!
diff --git a/blog/librex-and-dots.html b/blog/librex-and-dots.html
index 510d8e3..5bff21f 100644
--- a/blog/librex-and-dots.html
+++ b/blog/librex-and-dots.html
@@ -1,6 +1,6 @@
<meta name="date" content="2023/06/27">
<title>librex and dots</title>
-<link rel=stylesheet href=style.css>
+<link rel=stylesheet href='/style.css'>
<body style="background-color: #161617;">
<p>
Hello!
diff --git a/blog/newblog b/blog/newblog
index 2cd5ca3..ea69701 100755
--- a/blog/newblog
+++ b/blog/newblog
@@ -11,7 +11,7 @@ filename="$(echo $name | sed 's/ /-/g').html"
printf '<!DOCTYPE HTML>
<html lang="en">
<meta name="date" content="2023/07/15"><title>'$name'</title>
- <link rel=stylesheet href=style.css>
+ <link rel="stylesheet" href="/style.css">
<body style="background-color: #161617;">
<p>
</p>
diff --git a/blog/state-of-the-site.html b/blog/state-of-the-site.html
index a9e689d..6196a42 100644
--- a/blog/state-of-the-site.html
+++ b/blog/state-of-the-site.html
@@ -1,6 +1,6 @@
<meta name="date" content="2023/03/11">
<title>state of the site</title>
-<link rel="stylesheet" href="style.css">
+<link rel="stylesheet" href="/style.css">
<body style="background-color: #161617;">
<p>
Hello o/, and welcome to my website!<br>
diff --git a/blog/style.css b/blog/style.css
deleted file mode 120000
index 5191bf7..0000000
--- a/blog/style.css
+++ /dev/null
@@ -1 +0,0 @@
-../style.css \ No newline at end of file