~darklands/teal

f077c08052db98ecb7ec40378d1208647aa660d8 — Ben O'Neill 1 year, 2 months ago 1a7d148
update EXTRA_PAGES again
1 files changed, 6 insertions(+), 5 deletions(-)

M teal
M teal => teal +6 -5
@@ 34,21 34,22 @@ EOF
}

teal_sidebar() { \
	barfile=$1
	cat >> $1 << EOF
<div id="side-bar">
<span>
EOF
	for f in $EXTRA_PAGES; do
		cat >> $1 << EOF
<a href="$(echo $f | sed 's/,.*$//')">$(echo $f | sed 's/.*,//')</a>
EOF
	done
	for file in $(echo $SOURCES | tr ' ' '\n' | sed "s|^|$SRC/|"); do
		. $(echo $file | sed 's/md$/sh/')
		cat >> $1 << EOF
<a href="$(echo $file | sed "s,$SRC/,,;s/\.md/\.html/")">$NAME</a>
EOF
	done
	for ep in $EXTRA_PAGES; do
		cat >> $1 << EOF
<a href="$(echo $ep | sed 's/,.*$//')">$(echo $ep | sed 's/.*,//')</a>
EOF
	done
	cat >> $1 << EOF
</span>
</div>