From 13561786a746131091e791187d4793432d2984ad Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 26 Sep 2023 16:55:27 -0400 Subject: Big changes! - Fixed typo in pinned git repos - Add new pinned repo (wallheaven) - Switch blog generation to php - remove useless symlink in blog/ --- blog.html | 39 -------------------- blog.php | 46 +++++++++++++++++++++++ blog/It's-Alive!.html | 2 +- blog/librex-and-dots.html | 2 +- blog/newblog | 2 +- blog/state-of-the-site.html | 2 +- blog/style.css | 1 - genblog | 51 -------------------------- index.html | 72 ------------------------------------ index.php | 89 +++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 139 insertions(+), 167 deletions(-) delete mode 100644 blog.html create mode 100644 blog.php delete mode 120000 blog/style.css delete mode 100755 genblog delete mode 100644 index.html create mode 100644 index.php diff --git a/blog.html b/blog.html deleted file mode 100644 index f9cd986..0000000 --- a/blog.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - Squibid's Blog - - - - - - -
-
-

- Squibid's Blog -

-
-
-

- - librex and dots2023/06/27
- It's Alive!2023/05/01
- state of the site2023/03/11
- -

-

- subscribe -

-
- - diff --git a/blog.php b/blog.php new file mode 100644 index 0000000..bcf1767 --- /dev/null +++ b/blog.php @@ -0,0 +1,46 @@ + + + + Squibid's Blog + + + + + + +
+
+

+ Squibid's Blog +

+
+
+

+ %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 @@ It's Alive! - +

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 @@ librex and dots - +

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 ' '$name' - +

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 @@ state of the site - +

Hello o/, and welcome to my website!
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 '(?<=\).*(?=\<\/title\>)' "blog/$1.html"; } -htmlline() { - printf "\ $(blogtitle $1)\ -$(blogdate $1)
\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.html deleted file mode 100644 index c650d46..0000000 --- a/index.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - Squibid's Site - - - - - -

-
-

Squibid's Website

-
-
-
-
-
-

Welcome

-
-

- Hi my name is Squibid, and this is my website! I will be using it - for anything that I find interesting along with some of my personal - projects and a blog. -

- Got a question? Email me. - It's not likely that I will respond fast as I do not check my - messages often. -

-
-
-
-
-

Pinned Git Repos

-

- my best projects -

-
-

My best repos are

-
    -
  • eat it - - Eat It is a Mpv - package manager writter in Lua with the intent of making Mpv - scripts easier to update and use.
  • -
  • coreutils - - My simple posix (if I can do that) complient core utils witten in - C :)
  • -
-

more...

-
-
- -
- - diff --git a/index.php b/index.php new file mode 100644 index 0000000..6c47c76 --- /dev/null +++ b/index.php @@ -0,0 +1,89 @@ + + + + Squibid's Site + + + + + +
+
+

Squibid's Website

+
+
+
+
+
+

Welcome

+
+

+ Hi my name is Squibid, and this is my website! I will be using it + for anything that I find interesting along with some of my personal + projects and a blog. +

+ Got a question? Email me. + It's not likely that I will respond fast as I do not check my + messages often. +

+
+
+
+
+

Pinned Git Repos

+

+ my best projects +

+
+

My best repos are

+
    +
  • Wallheaven - + A private frontend for wallhaven written in + php! +
  • +
  • eat it - + Eat It is a Mpv + package manager written in Lua with the intent of making Mpv + scripts easier to update and use.
  • +
  • coreutils - + My simple posix (if I can do that) complient core utils witten in + C :)
  • +
+

more...

+
+
+ +
+ + -- cgit v1.2.1