diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..f09c09f --- /dev/null +++ b/css/main.css @@ -0,0 +1,2 @@ +body { + font-family: sans-serif; } diff --git a/index.html b/index.html index 30ac6c1..0d39847 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,14 @@ Atlas48's Archives +
+/ +

Welcome to the Atlas48 Archives!

The First Banner

Everything’s slowly being set up and the like, so you’ll only be able to access here unless you know the layout.

diff --git a/not_found.html b/not_found.html index 2416e87..b83fc6c 100644 --- a/not_found.html +++ b/not_found.html @@ -3,11 +3,14 @@ Atlas48's Archives +
+/ +

HomeBlog


404

diff --git a/src/_tape/lib.m4 b/src/_tape/lib.m4 index da8cff6..cfd8fb6 100644 --- a/src/_tape/lib.m4 +++ b/src/_tape/lib.m4 @@ -1,4 +1,5 @@ divert(-1) # extra macros for site structure -define(`ytv',`') +define(`ytv',`') +define(`wrap',<$1>$2) divert diff --git a/src/_tape/main.html.m4 b/src/_tape/main.html.m4 index b70b66b..6e32c83 100644 --- a/src/_tape/main.html.m4 +++ b/src/_tape/main.html.m4 @@ -5,11 +5,14 @@ include(LIB)dnl TITLE +
+/ +
include(`/dev/stdin')dnl Probably not a good idea, but whatever. diff --git a/src/_tape/rcss.sh b/src/_tape/rcss.sh new file mode 100755 index 0000000..aaa229b --- /dev/null +++ b/src/_tape/rcss.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash +for i in $@; do + echo $i + sassc $i ../${i%.*} +done diff --git a/src/_tape/render.sh b/src/_tape/render.sh index be1bfac..885b833 100755 --- a/src/_tape/render.sh +++ b/src/_tape/render.sh @@ -14,6 +14,19 @@ function tape { *) pandoc --cols 168 -t html $i || echo "Skipping $i, unknown format" ;; esac } +function yn { + while true; do + read -p "$* [y/n]:" yn + case $yn in + [Yy]*) return 0;; + [Nn]*) + echo "Aborted." + return 1;; + *) echo "Please answer Yes or No.";; + esac + done +} + cd .. files=(`find -not -path './_*'`) for i in ${files[@]}; do @@ -24,8 +37,16 @@ for i in ${files[@]}; do else continue fi elif test -f $i; then + if ! grep -q '.s[ac]ss' "$i"; then + sass=+($i) + continue + fi tape $i | sed 's/^\s\{1,4\}//' | m4 -DTITLE="$(${prog[title]} $i)" -DLIB=${prog[lib]} ${prog[m4]} > ../${i%.*}.html else echo "Skipping $i, unknown file type" fi done + +if ! ( test -z ${css[@]} ) && yn "Run rcss.sh?"; then + _tape/rcss.sh ${css[@]} +fi diff --git a/style.css b/style.css deleted file mode 100644 index 9d23ceb..0000000 --- a/style.css +++ /dev/null @@ -1,3 +0,0 @@ -body { - font-family: sans-serif; -}