diff --git a/get_sd.awk b/get_sd.awk
new file mode 100644
index 0000000..42457b8
--- /dev/null
+++ b/get_sd.awk
@@ -0,0 +1,4 @@
+#!/usr/bin/awk
+BEGIN{FS="/";x=2}
+/\.\//{x++}
+{gsub($0,"./","");print $x;exit}
diff --git a/m4/main.html.m4 b/m4/main.html.m4
index 22cb6a9..696dc91 100644
--- a/m4/main.html.m4
+++ b/m4/main.html.m4
@@ -1,20 +1,21 @@
dnl template.m4.html v1.3-p1
dnl Part of the tape-and-string suite used to construct the website
include(`m4/lib.m4')dnl
+ifdef(`CSS_INC',`', define(`CSS_INC', `main'))dnl
+ifelse(CSS_INC,`dnd',define(`CSS_INC',`dnd'))dnl
+define(`_CSS',`/css/CSS_INC.css')dnl
TITLE
-
-
include(`/dev/stdin')dnl Probably not a good idea, but whatever.
diff --git a/render.sh b/render.sh
index 6e02d14..0afe999 100755
--- a/render.sh
+++ b/render.sh
@@ -1,6 +1,6 @@
#!/bin/bash
# render.sh: part of the tape-and-string framework.
-# v3.2-p1
+# v3.3-p1
#B: Load
enable -f /usr/lib/bash/csv csv
declare -A title
@@ -56,9 +56,9 @@ function docs {
o="${i/in/out}"
echo "$i => $o"
if test -z "${title[$i]}"; then
- tape $i | m4 m4/main.html.m4 > ${o%.*}.html
+ tape $i | m4 -DCSS_INC=$(awk -f get_sd.awk "$i") m4/main.html.m4 > ${o%.*}.html
else
- tape $i | m4 -DTITLE="${title[$i]}" m4/main.html.m4 > ${o%.*}.html
+ tape $i | m4 -DCSS_INC=$(awk -f get_sd.awk "$i") -DTITLE="${title[$i]}" m4/main.html.m4 > ${o%.*}.html
fi
done
}