From c7a228569f3cfce8b8578e1d61ddd14cb2d2efd6 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Wed, 1 May 2019 18:41:02 -0700 Subject: [PATCH] removed temporary html files, removed busted links, finally updated make file to its final functional form --- make.sh | 25 ++++++++++++++++---- prebuild/about.html | 46 ------------------------------------ prebuild/about.md | 5 ++-- prebuild/links.html | 57 --------------------------------------------- prebuild/links.md | 3 ++- 5 files changed, 24 insertions(+), 112 deletions(-) delete mode 100644 prebuild/about.html delete mode 100644 prebuild/links.html diff --git a/make.sh b/make.sh index 1f70800..1650303 100755 --- a/make.sh +++ b/make.sh @@ -2,25 +2,40 @@ rootDir='./tmp/' targetDir='post/' -[[ -z $rootDir/post/ ]] && mkdir -p $rootDir/post - post() { - # First get the body of the document tmp=".swap" base=$(basename $1) - # cat the files together + # Glue all the things pandoc $1 | cat 'templates/post-header.html' - 'templates/post-footer.html' >> $tmp sed -i "5i ${base%.*}" $tmp sed -i "s///g' $tmp # turn the header into an actual header sed -i '30i
' $tmp - sed -i '32i
' $tmp # change this to 33 once we finalized for the subheading + sed -i '33i ' $tmp # finally move this post to its proper location in the _rootDir mv $tmp "$rootDir/$targetDir/${base%.*}.html" rm -f $tmp } +[[ -z $rootDir/post/ ]] && mkdir -p $rootDir/post + +# root and style page cases where we don't want to do anything else +case $1 in + "s") + cp style.css $rootDir + cp style.css $rootDir/$targetDir + exit 0 + ;; + "r") + echo 'Building the root pages' + targetDir='' + post './prebuild/about.md' + post './prebuild/links.md' + exit 0 + ;; +esac + for file in $@;do post $file done diff --git a/prebuild/about.html b/prebuild/about.html deleted file mode 100644 index 31424be..0000000 --- a/prebuild/about.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - -about - - - - - - - - - -
- -
-
-

About me

-

what did you expect a blog post?

-
-
-

Who I am

-

Uhhhhh, yea I'm an infosec student at literally where University. I'm not very fond of academia thus far but I like learning stuff on my own; x86_64 and ARM are kinda my things right now. Security is primarily my focus as it gives me a chance to... uhhhhh... I like breaking stuff(software) and seeing what happens. Making stuff is also lots of fun, especially when done the hard way.

-

What/Why this site? huh?

-

I like journaling things and when it feels like someone could be reading it feels as though I should think about what I say instead of saying spitting truthbombs random things. Not only that but it gives me a weird motivation to actually do projects outside of school since I think "oh i should update the site with a new post or something". As long as I don't take on a project in a really dumb way I usually try finishing up to where point where it seems somewhat interesting.

-

Things I enjoy

-

Not being dead or a fern are probably my top two things I enjoy right ahead of not being a wooly sock in siberia as a third.

-

Honestly I like making stuff in software, but hardware is also cool(just exepensive). CTF challenges are lots of fun as well, but I've yet to document my findings on one as many have weird rules about sharing, and I feel weird about it as well.

-
-
-
- - diff --git a/prebuild/about.md b/prebuild/about.md index ab0dd5e..b7ec0b8 100644 --- a/prebuild/about.md +++ b/prebuild/about.md @@ -1,6 +1,5 @@ -# [About Me](../index.html) - -_really though what did you expect a blog post?_ +# About Me +## Hello yes this is me(kinda) ## Who I am diff --git a/prebuild/links.html b/prebuild/links.html deleted file mode 100644 index 90e88fd..0000000 --- a/prebuild/links.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - -links - - - - - - - -
- -
-
-

Contact

-

Links and places to find me online

-
-
-

-

Professional Links/Business inquires

-

I would highly prefer that you contact me via email so that I may get to the message in a timely manner. I typically respond within 24 hours but there are no guarantees:

-
    -
  • email: alejandros714@protonmail.com
  • -
-

A quick side note that I am much more active on gitlab than github

-
  • Gitlab Account: shockrahwow
  • -
  • Github Account: smolltucc
  • - -

    List of places to contanct me or find me doing random things in general

    - -

    Also I run a small Quake Community dedicated to teaching people about the game to improve and find other people to play with. The game is on steam if you're interested in checking it out ;)

    - -
    -
    -
    - - diff --git a/prebuild/links.md b/prebuild/links.md index e9de437..a3e4efa 100644 --- a/prebuild/links.md +++ b/prebuild/links.md @@ -1,4 +1,5 @@ -# [Links and places to find me online](../index.html) +# [Contact Links](/index.html) +## Generally places to find me online ### Professional Links/Business inquires