diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/BUILDING-HTML/footer.html b/BUILDING-HTML/footer.html new file mode 100644 index 0000000..7ce8850 --- /dev/null +++ b/BUILDING-HTML/footer.html @@ -0,0 +1,4 @@ + diff --git a/BUILDING-HTML/head.html b/BUILDING-HTML/head.html new file mode 100644 index 0000000..f709faa --- /dev/null +++ b/BUILDING-HTML/head.html @@ -0,0 +1,7 @@ + + + + + var-TITLE + + diff --git a/BUILDING-HTML/sidebar.html b/BUILDING-HTML/sidebar.html new file mode 100644 index 0000000..46fbb67 --- /dev/null +++ b/BUILDING-HTML/sidebar.html @@ -0,0 +1,28 @@ +
+ + +
+
+ +
+ +
diff --git a/BUILDING-HTML/titlebar.html b/BUILDING-HTML/titlebar.html new file mode 100644 index 0000000..2c9a276 --- /dev/null +++ b/BUILDING-HTML/titlebar.html @@ -0,0 +1,4 @@ + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..959edcd --- /dev/null +++ b/build.sh @@ -0,0 +1,64 @@ +#!/bin/sh +set -euf +NL=' +' +IFS="$NL" +POSIXLY_CORRECT=1 + +cd "$GIT_WORK_TREE" + +while getopts :c OPT; do + case "$OPT" in + c) rm -rf ./build; exit 0 ;; + *) exit 1 ;; + esac +done + +KEYWORDS="$(ls -w 1 "./BUILDING-HTML/")" + +# build dir structure +fd -E '/build' -E '/BUILDING-HTML' -t d -x mkdir -p build/{} + +# copy files +fd -E '/build' -E '/BUILDING-HTML' -E 'LICENSE' -E 'build.sh' -t f -x cp {} build/{} + +# first do html +for file in $(fd -t f -e html -d 1 . ".") ; do + file2="./build/${file##*/}" + tmp="$(cat "$file")" + for k in $KEYWORDS; do + case $k in + titlebar.html|head.html) + # grab var line + line="$(rg -e '\t*' -r '$1' <<-EOF + $tmp + EOF + )" || continue + # set params + IFS=":" + set -- $line + IFS=" $NL" + rep="$(cat "./BUILDING-HTML/$k")" + # replace vars + for j in $@; do + rep="$(sed -e "s/var-${j%%=*}/${j#*=}/g" <<-EOF + $rep + EOF + )" + done + # final replacement + tmp="$(sd "" "${rep}" <<-EOF + $tmp + EOF + )" + ;; + *) + tmp="$(sed -e "//r ./BUILDING-HTML/$k" -e "//d" <<-EOF + $tmp + EOF + )" + ;; + esac + done + printf '%s' "$tmp" > "$file2" +done diff --git a/img/buttons/quakenow.gif b/img/buttons/quakenow.gif new file mode 100644 index 0000000..929caa7 Binary files /dev/null and b/img/buttons/quakenow.gif differ diff --git a/index.html b/index.html index 3c41fe0..b5bc2ee 100644 --- a/index.html +++ b/index.html @@ -1,57 +1,18 @@ - - - - - ~yosh - - +

~yosh@unix.dog

-
- - -
-
- -
- -
+
- +

welcome!

yo what up. welcome to my unix.dog page
take a look around!

under construction
very, very much under construction

- + diff --git a/info.html b/info.html index bc8bc0c..432ce80 100644 --- a/info.html +++ b/info.html @@ -1,48 +1,12 @@ - - - - - ~yosh - - +

~yosh@unix.dog

-
- - -
-
- -
- -
+
- +

myself

I'm yosh. or yoshi. or yoshiyosh... or yoshiyoshiyosh...
my names get taken a lot. wonder why.
@@ -67,8 +31,5 @@

  • twitter(deprecated)
  • - +