commit 95e5c2c8c250b9b9d5a60aa07614530e7b909436
parent 901b7e7af943702e9f3277ee69ef903a7fe860d7
Author: alex wennerberg <alex@alexwennerberg.com>
Date: Sat, 8 Apr 2023 15:55:06 -0400
Add subdir navigation
Diffstat:
5 files changed, 27 insertions(+), 17 deletions(-)
diff --git a/build.sh b/build.sh
@@ -6,7 +6,6 @@
# lists all files recursively in srcdir
# copies them to outdir if not html
# otherwise, add header and footer
-# TODO: add sections in sidebar, maybe clean names
outdir=_site
srcdir=src
@@ -16,17 +15,23 @@ rm -rf $outdir/*
htmlfiles=$(find $srcdir -name '*.html')
+# takes navdir as a parameter
function nav () {
- echo "<nav><ul><section class='site-nav'>"
- for file in $htmlfiles; do
- fn=`basename ${file%.*}`
- realpath=`echo $file | sed -e "s/^${srcdir}\///"`
- echo "<li><a href='/$realpath'>${realpath%.*}</a></li>"
+ navdir=$1
+ echo "<nav><section class='site-nav'>"
+ for file in $navdir/*; do
+ if [[ $file == *.html || -d $file ]]; then
+ fn=`basename ${file%.*}`
+ realpath=`echo $file | sed -e "s/^${srcdir}\///"`
+ echo "<li><a href='/$realpath'>$fn</a></li>"
+ fi
done
+ if [[ $navdir != $srcdir ]]; then
+ echo '<li><a href="../">^up</a></li>'
+ fi
echo "</section></ul></nav><main>"
}
-navstr=`nav`
for file in $(find $srcdir); do
realpath=`echo $file | sed -e "s/^${srcdir}\///"`
@@ -34,7 +39,8 @@ for file in $(find $srcdir); do
mkdir -p `dirname $fn`
if [[ $file == *.html ]]; then
cat templates/header.html > $fn
- echo $navstr >> $fn
+ dir=`dirname $file`
+ echo `nav $dir` >> $fn
cat $file >> $fn
cat templates/footer.html >> $fn
else
diff --git a/src/about.html b/src/about.html
@@ -3,7 +3,15 @@
prose, and my current primary interests are exploring alternatives to
mainstream software and computing (details below) and their ability to build
creative, cooperative, non-commercial relationships and communities. </p>
-<p><img src="me.jpg" alt="" /></p>
+<p><b>Elsewhere Online</b></p>
+<ul>
+ <li> <a href="https://git.alexwennerberg.com">git</a> </li>
+ <li> <a href="https://github.com/alexwennerberg">github</a> (using less and less lately)</li>
+ <li> <a href="https://merveilles.com/@aw">mastodon</a> </li>
+ <li> <a href="https://twitch.tv/0000">twitch</a> </li>
+ <li> <a href="https://www.youtube.com/@alexwennerberg">youtube</a> </li>
+</ul>
+<img src="me.jpg" alt="" />
<p>I studied Physics and English at Truman State University in Kirksville,
Missouri graduating in 2016, lived in Chicago for four years, then San
Francisco for two. I currently live in Brooklyn, NYC. I published the poetry
diff --git a/src/infrastructure.html b/src/infrastructure.html
@@ -10,14 +10,8 @@ which resides in my home.</p>
<li>Web server: lighttpd</li>
</ul>
<p>(TODO insert picture here)</p>
-<h2>prerequisites</h2>
-<p>Bringing my digital infrastructure home required a few prerequisites:
-<ul>
-<li>A stable, relatively fast home internet connection</li>
-<li>An ISP that will not stop me from doing this (this remains to be seen)</li>
-<li>Relatively good sysadmin and networking skills</li>
-</ul>
-</p>
+<p>For more information about setting up your own server, check out my <a href='server-guide'>home server guide</a></p>
+
<h2>counter cloud strategies</h2>
<p>I was inspired by christina cochior's talk on <a href="https://www.youtube.com/watch?v=fx3XcKy7LJY&t=1200s">counter cloud strategies</a> and the related work <a href="https://varia.zone/atnofs-publication.html">a traversal network of feminist servers</a></p>
<p>The web today is becoming highly centralized, and most of us are completely
diff --git a/src/poetry/index.html b/src/poetry/index.html
@@ -0,0 +1 @@
+Blah Blah poems
diff --git a/src/poetry/mypoem.html b/src/poetry/mypoem.html
@@ -0,0 +1 @@
+lighght