moved pages and posts content to new directories as the build script is gensite now
This commit is contained in:
28
pages/about.md
Normal file
28
pages/about.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# About Me sorta
|
||||
## Hello yes
|
||||
|
||||
## Who I am
|
||||
|
||||
I'm a random on the internet that likes to write software and build stuff.
|
||||
I also maintain a crusade against jargon and obtuse language; hence why I avoid.
|
||||
|
||||
## Why does this even exist tho?
|
||||
|
||||
I have no idea.
|
||||
I just know that I like to write about things that might be interesting to me at the time and wanted a somewhat public forum to do it on.
|
||||
In this way I can force myself to not excuse shit phrasing.
|
||||
|
||||
## So like what do you write about?
|
||||
|
||||
lol... oh wait ur serious....
|
||||
Sometimes programming topics, other times I'm doing in gaming and other times something completely random.
|
||||
I suppose my primary goal however is to write about writing software.
|
||||
|
||||
I tend to stick to Python, Rust, Bash, C, and some web-dev things from time to time.
|
||||
|
||||
|
||||
## Things I enjoy
|
||||
|
||||
ez: Programming, bhop, arena fps games.
|
||||
|
||||
_No particular order btw_
|
||||
103
pages/build.md
Normal file
103
pages/build.md
Normal file
@@ -0,0 +1,103 @@
|
||||
# How this site came to be
|
||||
|
||||
## Tech
|
||||
|
||||
The """"tech-stack"""" for this site is [pandoc](https://pandoc.org/) and a single shell script.
|
||||
Ok, technically there's also the issue about python but really you don't need to use it since the site pages build anyways.
|
||||
|
||||
Yea so here's the shell(bash) script.
|
||||
I'm going to remove any bashisms soon enough but am very lazy so this is the best I got for ya.
|
||||
```
|
||||
#!/bin/bash
|
||||
rootDir='./site/'
|
||||
targetDir='post/'
|
||||
|
||||
post() {
|
||||
echo Building: $1
|
||||
tmp=".swap"
|
||||
full=".fullswap"
|
||||
base=`basename $1`
|
||||
# First build the content of the site
|
||||
pandoc $1 > $tmp
|
||||
# Title, images and tables get added/fixed here
|
||||
sed "s/{TITLE}/<title>${base%.*}<\/title>/g" ./templates/post-header.html > $full
|
||||
cat $tmp ./templates/post-footer.html >> $full
|
||||
sed -i 's/<img/<img class="pure-img"/g;s/<table>/<table class="pure-table">/g' $full
|
||||
|
||||
# Move things to proper directory and cleanup
|
||||
mv $full "$rootDir/$targetDir/${base%.*}.html"
|
||||
rm -f $tmp
|
||||
}
|
||||
|
||||
build_all() {
|
||||
mkdir -p $rootDir/post/ $rootDir/fonts/ $rootDir/img/
|
||||
|
||||
cp style.css "$rootDir"
|
||||
cp prebuild/post/style.css "$rootDir/post/"
|
||||
|
||||
cp fonts/* $rootDir/fonts/
|
||||
|
||||
cp img/ $rootDir/img/ -r
|
||||
mv $rootDir/img/favicon.png $rootDir/
|
||||
|
||||
# Try to get xargs to deal with this ugliness
|
||||
for r in prebuild/*md;do
|
||||
post $r
|
||||
done
|
||||
for p in prebuild/post/*md;do
|
||||
post $p
|
||||
done
|
||||
}
|
||||
|
||||
_help() {
|
||||
echo 'Options:
|
||||
-h show this prompt
|
||||
-p [postDirectory/*] (takes a list of paths to build from)
|
||||
-r build root pages
|
||||
-s copy stylesheets
|
||||
-l run live server'
|
||||
}
|
||||
server() {
|
||||
cd $rootDir
|
||||
echo 'Address: 0.0.0.0:8080'
|
||||
python -m SimpleHTTPServer 8080
|
||||
}
|
||||
|
||||
if [ -z $1 ]
|
||||
then
|
||||
_help
|
||||
exit 0
|
||||
fi
|
||||
|
||||
while getopts ":aslrhp:" opt;do
|
||||
case "$opt" in
|
||||
a)
|
||||
build_all;;
|
||||
s)
|
||||
cp style.css "$rootDir"
|
||||
cp prebuild/post/style.css "$rootDir/$targetDir"
|
||||
exit 0
|
||||
;;
|
||||
r)
|
||||
# Fix targetDir so that it points to the root of the site output
|
||||
targetDir=''
|
||||
post './prebuild/about.md'
|
||||
post './prebuild/links.md'
|
||||
post './prebuild/index.md'
|
||||
exit 0
|
||||
;;
|
||||
p)
|
||||
for file in ${@:2};do
|
||||
post $file
|
||||
done
|
||||
;;
|
||||
h)
|
||||
_help;;
|
||||
l)
|
||||
server;;
|
||||
esac
|
||||
done
|
||||
|
||||
```
|
||||
|
||||
## Story
|
||||
55
pages/index.md
Normal file
55
pages/index.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Definitely not a blog
|
||||
## I swear
|
||||
|
||||
## **[Segmented Routes](/post/route2.html)**
|
||||
> _September 13, 2019_ \
|
||||
> tfw -1 time saves everywhere
|
||||
|
||||
## **[A quick Bhop Route showcase](/post/route1.html)**
|
||||
> Time to finally put that speedrunning tag to use
|
||||
|
||||
|
||||
## **[DWM > i3](/post/dwm.html)**
|
||||
> _August 18, 2019_
|
||||
|
||||
> Now DWM is my new best friend
|
||||
|
||||
## **[Rewrites and this site](/post/rewrite.html)**
|
||||
> _May 2, 2019_ \
|
||||
> FeelsGoodMan
|
||||
|
||||
|
||||
## **[Fitting ATX boards in MATX Cases](./post/atx.html)**
|
||||
> _January 10, 2018_ \
|
||||
> pls no boolie cable management
|
||||
|
||||
## **[Wot in tarnation happend to the style](./post/style.html)**
|
||||
> _September 21, 2018_ \
|
||||
> waddu heck man it looks all different \
|
||||
|
||||
## **[Bash is weird sometimes](./post/bash-1.html)**
|
||||
> _July 22, 2018_ \
|
||||
> My terminal experience is gettin really weird... \
|
||||
> More deets coming after this post about that \
|
||||
|
||||
## **[QuteBrowser is /comfy/](./post/qute.html)**
|
||||
> _July 2, 2018_ \
|
||||
> Operating at peak comfy levels captain! \
|
||||
|
||||
## **[First Foray into big Projects](./post/qca1.html)**
|
||||
> _June 25, 2018_ \
|
||||
> Sometimes you just gotta go ham \
|
||||
|
||||
## **[This time for real](./post/open.html)**
|
||||
> _June 18, 2018_ \
|
||||
> terminal commands > gui \
|
||||
> tfw you want to use propritary software but your ideology gets in the way
|
||||
|
||||
## **[Website Construction philosophy](./post/phil.html)**
|
||||
> JS is bloat prove me wrong \
|
||||
> But no Seriously why do so many sites have to load 6000 js scripts and why are half of them obfuscated
|
||||
|
||||
## **[Mapping in Reflex](./post/mapping.html)**
|
||||
> Making maps is hard fam
|
||||
|
||||
|
||||
24
pages/links.md
Normal file
24
pages/links.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Contact Links
|
||||
## Generally 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: [https://gitlab.com/shockrahwow](shockrahwow) \
|
||||
* Github Account: [https://github.com/smolltucc](smolltucc) \
|
||||
|
||||
### Social Medias Links
|
||||
|
||||
_List of places to contanct me or find me doing random things in general_
|
||||
|
||||
* [Twitch Channel: shockrahwow](https://twitch.tv/shockrah) \
|
||||
* [Steam Profile](https://steamcommunity.com/id/shockrah) \
|
||||
|
||||
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 ;)
|
||||
|
||||
* [Community website](https://sites.google.com/view/qcacademy/home)
|
||||
15
pages/stream.md
Normal file
15
pages/stream.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Twitch Stream
|
||||
|
||||
<iframe src="https://player.twitch.tv/?channel=shockrah" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>
|
||||
# Latest Interesting highlight
|
||||
|
||||
Cool skip that I found that ended up being really hard to setup let alone execute.
|
||||
|
||||
|
||||
<div style="width: 100%; height: 0px; position: relative; padding-bottom: 56.250%;"><iframe src="https://streamable.com/s/b4h2r/wtdgkb" frameborder="0" width="100%" height="100%" allowfullscreen style="width: 100%; height: 100%; position: absolute;"></iframe></div>
|
||||
|
||||
# Various Social Media's
|
||||
|
||||
> Discord: `shockrah#2647`
|
||||
|
||||
<blockquote>Mastadon: <a href="https://qoto.org/@shockrah">https://qoto.org/@shockrah</a></blockquote>
|
||||
Reference in New Issue
Block a user