From 13561786a746131091e791187d4793432d2984ad Mon Sep 17 00:00:00 2001
From: Squibid
-
- librex and dots2023/06/27
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 @@
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 '
Hello o/, and welcome to my website! My best repos are
- It's Alive!2023/05/01
- state of the site2023/03/11
-
+ %s%s
',
+ $matches[0], str_replace("-", " ", $matches[0]),
+ $tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯");
+ }
+ }
+ ?>
subscribe
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 @@
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
diff --git a/genblog b/genblog
deleted file mode 100755
index 12bb7fe..0000000
--- a/genblog
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-#
-# genblog is a script to take data from my blogs and format it into html for
-# my website
-#
-# by: Squibid
-#
-
-#
-# Helper variables and functions
-#
-bloglist=$(ls -t1 blog/*.html | grep -oP '(?<=\/).*?(?=\.)')
-top5=$(printf "$bloglist\n" | head -5)
-
-blogdate() {
- grep -oP '(?<=\)' "blog/$1.html"
-}
-blogtitle() { grep -oP '(?<=\
\n"
-}
-
-# set file dates properly
-for i in $bloglist; do
- if $(touch -cd "$(blogdate $i)T00:00:00" /tmp/file); then
- touch -amt "$(blogdate $i | sed 's/\///g')0000" "blog/$i.html"
- fi
-done
-
-#
-# Start modifing our files
-#
-
-# delete old bloglist
-sed -i -n '1,/.*/p;/.*/,$p' index.html
-sed -i -n '1,/.*/p;/.*/,$p' blog.html
-
-# top 5 blogs
-for i in $top5; do
- line=$(htmlline $i)
- # add new bloglist
- sed -i "/.*/i $line" index.html
-done
-
-# generate the full blog list
-for i in $bloglist; do
- line=$(htmlline $i)
- # add new bloglist
- sed -i "/.*/i $line" blog.html
-done
diff --git a/index.html b/index.php
similarity index 73%
rename from index.html
rename to index.php
index c650d46..6c47c76 100644
--- a/index.html
+++ b/index.php
@@ -38,9 +38,13 @@
-
- If this is here I forgot to generate the blog list.
-
+ 4)
+ break;
+ $tags = get_meta_tags($path.'/'.$file);
+ printf('%s%s
',
+ $matches[0], str_replace("-", " ", $matches[0]),
+ $tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯");
+ $i++;
+ }
+ }
+ ?>