removed fluff
This commit is contained in:
parent
7aadf1549d
commit
2348957cf4
58
make.sh
58
make.sh
@ -1,58 +0,0 @@
|
||||
#!/bin/bash
|
||||
rootDir='./site/'
|
||||
targetDir='post/'
|
||||
|
||||
post() {
|
||||
tmp=".swap"
|
||||
full=".fullswap"
|
||||
base=$(basename $1)
|
||||
# First build the content of the site
|
||||
pandoc $1 | sed '3i </div>' >> $tmp
|
||||
sed -i '1i <div class="header">' $tmp
|
||||
# next we glue together the header and footer
|
||||
cat ./templates/post-header.html $tmp ./templates/post-footer.html > $full
|
||||
rm -f $tmp
|
||||
# Title, images and tables get added/fixed here
|
||||
sed -i "5i <title>${base%.*}</title>" $full
|
||||
sed -i "s/<img/<img class=\"pure-img\"/g" $full
|
||||
sed -i 's/<table>/<table class="pure-table">/g' $full
|
||||
|
||||
# finally move this post to its proper location in the _rootDir
|
||||
mv $full "$rootDir/$targetDir/${base%.*}.html"
|
||||
rm -f $full
|
||||
}
|
||||
|
||||
_help() {
|
||||
echo 'Options:
|
||||
-p [postDirectory/*]
|
||||
-r (build root pages)
|
||||
-s (copy stylesheets)'
|
||||
}
|
||||
mkdir -p "$rootDir/post"
|
||||
|
||||
while getopts ":srhp:" opt;do
|
||||
case "$opt" in
|
||||
s)
|
||||
cp style.css "$rootDir" # root stylesheet
|
||||
cp style.css "$rootDir/$targetDir" # post stylesheet
|
||||
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
|
||||
#echo $file
|
||||
post $file
|
||||
done
|
||||
;;
|
||||
h)
|
||||
_help;;
|
||||
esac
|
||||
done
|
||||
_help;
|
@ -1,81 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>index</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
|
||||
<!-- Side menu forces things properly apparantly-->
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.png"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
<div id="menu">
|
||||
<a class="pure-menu-heading" href="/">Home</a>
|
||||
<div class="pure-menu">
|
||||
<ul class="pure-menu-list">
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/about.html">About</a>
|
||||
</li>
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/links.html">Links</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
<div class="content">
|
||||
<div class="header">
|
||||
<h1>This is definitely not a blog</h1>
|
||||
<h2>I swear</h2>
|
||||
</div>
|
||||
<h1><strong><a href="./post/atx.html">Fitting ATX boards in MATX Cases</a></strong></h1>
|
||||
<p><em>January 10, 2018</em><br />
|
||||
pls no boolie cable management</p>
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/style.html">Wot in tarnation happend to the style</a></strong></h1>
|
||||
<blockquote>
|
||||
<em>September 21, 2018</em><br />
|
||||
waddu heck man it looks all different<br />
|
||||
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/bash-1.html">Bash is weird sometimes</a></strong></h1>
|
||||
<blockquote>
|
||||
<em>July 22, 2018</em><br />
|
||||
My terminal experience is gettin really weird...<br />
|
||||
More deets coming after this post about that<br />
|
||||
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/qute.html">QuteBrowser is /comfy/</a></strong></h1>
|
||||
<blockquote>
|
||||
<em>July 2, 2018</em><br />
|
||||
Operating at peak comfy levels captain!<br />
|
||||
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/qca1.html">First Foray into big Projects</a></strong></h1>
|
||||
<blockquote>
|
||||
<p><em>June 25, 2018</em><br />
|
||||
Sometimes you just gotta go ham </p>
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/open.html">This time for real</a></strong></h1>
|
||||
<blockquote>
|
||||
<p><em>June 18, 2018</em><br />
|
||||
terminal commands > gui<br />
|
||||
tfw you want to use propritary software but your ideology gets in the way</p>
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/phil.html">Website Construction philosophy</a></strong></h1>
|
||||
<blockquote>
|
||||
<p>JS is bloat prove me wrong<br />
|
||||
But no Seriously why do so many sites have to load 6000 js scripts and why are half of them obfuscated</p>
|
||||
</blockquote>
|
||||
<h1><strong><a href="./post/mapping.html">Mapping in Reflex</a></strong></h1>
|
||||
<blockquote>
|
||||
<p>Making maps is hard fam</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user